Delete Category by lookup key
DELETE/categories/:lookupKey/:lookupValue
Use this endpoint to delete category by lookup key. If multiple categories with the same lookup key exist, use additional filtering depending on the lookup key to uniquely identify the category (e.g. source
and language
for lookup key source
).
Request
Path Parameters
Lookup key. Read more about category lookup keys
The value of the key (id or sourceId)
Query Parameters
Optional. Used in combination with lookup key sourceId
Optional. Default language of the category
Responses
- 200
- 404
Delete Category by Id - 200
Response Headers
Alt-Svc
string
Via
string
alt-svc
string
content-length
string
date
string
return-format
string
server
string
x-request-id
string
- application/json
- Schema
- Example (from schema)
- Delete Category by Id - 200
Schema
data
object
{
"data": {},
"messages": [
"Category deleted"
]
}
{
"data": {},
"messages": [
"Category deleted"
]
}
Delete Category by Id - 404
Response Headers
Alt-Svc
string
Via
string
alt-svc
string
content-length
string
date
string
return-format
string
server
string
x-request-id
string
- application/json
- Schema
- Example (from schema)
- Delete Category by Id - 404
Schema
error
object
{
"error": {
"code": 30006,
"messages": [
"Category with sourceId [2947] not found"
],
"moreInfo": "https://www.propel.us/docs/errors/30006",
"status": 404,
"type": "CategoryNotFound"
}
}
{
"error": {
"code": 30006,
"messages": [
"Category with sourceId [2947] not found"
],
"moreInfo": "https://www.propel.us/docs/errors/30006",
"status": 404,
"type": "CategoryNotFound"
}
}