Catalog and services
DEL/v1/categories/{id}

Delete category

View as .md
curl -X DELETE "https://api.52-28-238-205.sslip.io/v1/categories/{id}" \  -H "Cookie: <console session cookie>"

Deletes one of the caller platform's categories. Platform operators only, with connect:manage; built-in categories can't be deleted and a category that still has listings returns 409.

Server URLhttps://api.52-28-238-205.sslip.io
DEL/v1/categories/{id}Base URL: https://api.52-28-238-205.sslip.io
Authorization
  • sessionCookie: <console session cookie>
  • apiKeyAuthorization: Bearer sk_test_...
Path
  • idstringrequired

    Category id (cat_...).

Requires permissionconnect:manage
Held by operator, merchant_owner. The caller must hold this permission, or the call is refused with 403.

Authorization

cookieuapg_session<token>

Console session cookie (HttpOnly, SameSite=Lax)

Path Parameters

id*Id

Category id (cat_...).

Response Body

Success.

application/json
  1. response
ok*Ok
[key: string]?any