Skip to main content

Upsert Category by External ID

PUT 

/marketplaces/:marketplaceID/categories/external/:categoryID

Create or update a category using its external identifier (resource_id).

  • If a category with the given external ID does not exist, a new one is created (returns 201).
  • If a category with the given external ID already exists, it is updated (returns 200).
  • If the provided text is already used by another category in the same marketplace, a 409 Conflict is returned.

The external identifier acts as the unique key for the upsert operation. The text field must be unique within a marketplace.

Request

Responses

Category Updated Successfully