Delete Orphaned Listing Categories For Channel
https://api.flxpoint.com/listing/category/orphaned/channelUse this when you want to delete listing data through the API.
This page explains the endpoint. To send a live test request, use the interactive tester in Stoplight or your own Postman / HTTP client.
Delete orphaned listing categories for a single channel (categories with no listing products associated). Accepts either an Account API Token or a Channel API Token; the caller must have access to the specified channel. Use this endpoint to retry cleanup for a single channel after a partial failure of the account-wide endpoint, or to target a specific channel known to have orphans.
Request
channelIdqueryintegerThe channel ID orphaned categories should be found and deleted from. When using a channel token nothing needs to be passed here. When using an account token the channel ID must be passed.
Example request
/listing/category/orphaned/channelcurl -X DELETE "https://api.flxpoint.com/listing/category/orphaned/channel" \
-H "Accept: application/json" \
-H "X-API-TOKEN: YOUR_TOKEN"Responses
200OKapplication/json
deletedCountintegerrequired0{
"deletedCount": 0
}401Unauthorized
No schema documented for this status.
403Forbidden - Channel ID does not exist
No schema documented for this status.
OpenAPI fragment
{
"delete": {
"summary": "Delete Orphaned Listing Categories For Channel",
"description": "Delete orphaned listing categories for a single channel (categories with no listing products associated). Accepts either an Account API Token or a Channel API Token; the caller must have access to the specified channel. Use this endpoint to retry cleanup for a single channel after a partial failure of the account-wide endpoint, or to target a specific channel known to have orphans.",
"parameters": [
{
"in": "query",
"name": "channelId",
"required": false,
"schema": {
"type": "integer"
},
"description": "The channel ID orphaned categories should be found and deleted from. When using a channel token nothing needs to be passed here. When using an account token the channel ID must be passed."
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DeleteOrphanedCategoriesResponse"
}
}
}
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden - Channel ID does not exist"
}
}
}
}