Delete a prompt

Permanently delete a prompt and cancel all related scheduled jobs. This will also cascade delete all associated prompt runs.

DELETE
/prompts/{promptId}

Permanently delete a prompt and cancel all related scheduled jobs. This will also cascade delete all associated prompt runs.

Authorization

BearerAuth
AuthorizationBearer <token>

Bearer API token for access

In: header

Path Parameters

promptId*string

The ID of the prompt to delete

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/prompts/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "brandId": "string",  "value": "string",  "enabled": true,  "tags": [    "string"  ],  "systemTags": [    "string"  ],  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z",  "deletedRunsCount": 0}
{  "error": "string",  "message": "string"}
{  "error": "string",  "message": "string"}
{  "error": "string",  "message": "string"}
{  "error": "string",  "message": "string"}