Delete a stored response
DELETE
/responses/{response_id}
const url = 'https://api.katara.com/v1/responses/example';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.katara.com/v1/responses/example \ --header 'Authorization: Bearer <token>'Deletes a stored response under the same rule as reading it.
Authorizations
Section titled “Authorizations”- bearerAuth
- None
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”response_id
required
string
The id of a stored response.
Responses
Section titled “Responses”The stored response was deleted.
Media typeapplication/json
object
id
required
string
object
required
string
deleted
required
boolean
Example
{ "object": "response.deleted", "deleted": true}The response is missing, expired, deleted or someone else’s (response_not_found).
Media typeapplication/json
object
error
required
object
type
string
code
required
Stable error code.
string
message
required
Explanation for the caller.
string
param
string | null
Examplegenerated
{ "error": { "type": "example", "code": "example", "message": "example", "param": "example" }}