DELETE
/v2/projects/{projectId}/prompts/{promptId}Delete a project prompt
Deletes a prompt from a project. Use promptId to identify the prompt and projectId to scope the deletion to its project.
promptIdintegerrequired
The integer identifier of the prompt to delete.
projectIdintegerrequired
The integer identifier of the project containing the prompt.
200Confirms that the prompt was deleted.
400Returned when an identifier or other request value is invalid.
codestringrequired
paramsarray<object>optional
401Returned when the request is not authenticated.
codestringrequired
paramsarray<object>optional
403Returned when the authenticated user does not have permission to delete the prompt.
codestringrequired
paramsarray<object>optional
404Returned when the project or prompt cannot be found.
codestringrequired
paramsarray<object>optional
Error handling
A 400 is returned when an identifier is invalid. A 401 is returned when the request is unauthenticated, and a 403 is returned when the authenticated user cannot delete the prompt. A 404 is returned when the project or prompt cannot be found; the promptId and projectId path parameters must identify the prompt and its project.