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
textis 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
- 200
- 201
- 400
- 401
- 409
- 500
Category Updated Successfully
Category Created Successfully
Bad Request
Unauthorized
Conflict – A category with the same text already exists in this marketplace
Internal Server Error