Delete a post
DELETE
/posts/{id}
const url = 'https://api.dropslate.top/v1/posts/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.dropslate.top/v1/posts/example \ --header 'Authorization: Bearer <token>'Only a draft or a failed post. Requires write.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”id
required
string
Responses
Section titled “ Responses ”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."}