Skip to main content
PATCH
/
listings
/
cleanse
/
edit
Edit or remove rows in a cached listings batch
curl --request PATCH \
  --url https://api.seminode.com/v1/listings/cleanse/edit \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "batch_id": "<string>",
  "edit_indices": [
    {
      "index": 123,
      "new": {
        "attributes": {
          "coo": "<string>",
          "currency": "<string>",
          "custom": {},
          "date_code": "<string>",
          "description": "<string>",
          "eccn": "<string>",
          "lot_no": "<string>",
          "moq": 123,
          "mpq": 123,
          "packaging": "<string>"
        },
        "batch_id": "<string>",
        "company": "<string>",
        "contact": {
          "methods": [
            "<string>"
          ],
          "reply_url": "<string>"
        },
        "encrypted": {
          "ciphertext": "<string>",
          "payload": {}
        },
        "errors": {},
        "image_url": "<string>",
        "internal_no": "<string>",
        "material_no": "<string>",
        "mfr": "<string>",
        "qty": 123,
        "timing": {
          "expiry": 123,
          "lead_time": "<string>",
          "lead_time_int": 123,
          "required_date": 123
        },
        "type": "<string>",
        "unit_price": 123
      }
    }
  ],
  "remove_indices": [
    123
  ]
}'
"<string>"

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json

Rows to remove (RemoveIndices) or overwrite (EditIndices)

batch_id
string
edit_indices
object[]
remove_indices
integer[]

Response

success

The response is of type string.