cURL
curl --request DELETE \ --url https://app.promptingco.com/api/v1/site/pages \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data ' { "productId": "<string>", "pageIds": [ "<string>" ] } '
{ "ok": true, "data": { "scope": { "product": { "id": "<string>", "name": "<string>", "slug": "<string>" }, "organization": { "id": "<string>", "name": "<string>", "slug": "<string>" } }, "deletedCount": 1, "failedCount": 1, "deleted": [ { "id": "<string>", "title": "<string>" } ], "failed": [ { "id": "<string>", "message": "<string>", "slug": "<string>" } ] } }
Deprecated, will be removed in future versions. Please use the Apps equivalent.
Organization-scoped API key. Available scopes:
1
1 - 50
Successful response
true
Show child attributes