Skip to content

Delete a post

DELETE
/posts/{id}
curl --request DELETE \
--url https://api.dropslate.top/v1/posts/example \
--header 'Authorization: Bearer <token>'

Only a draft or a failed post. Requires write.

id
required
string

Deleted.

The key is missing the “write” scope, or this route needs a signed-in session instead of a key.

Media typeapplication/json
object
code
required
string
message
required
string
hint
string
Example
{
"code": "not_found",
"message": "The post does not exist.",
"hint": "Check the id and try again."
}

Does not exist, or belongs to a different workspace - the two look identical from here.

Media typeapplication/json
object
code
required
string
message
required
string
hint
string
Example
{
"code": "not_found",
"message": "The post does not exist.",
"hint": "Check the id and try again."
}

Not a draft or a failed post.

Media typeapplication/json
object
code
required
string
message
required
string
hint
string
Example
{
"code": "not_found",
"message": "The post does not exist.",
"hint": "Check the id and try again."
}