Delete/Cancel a post
delete/v1/social/posts/{id}
Delete/Cancel a post
Request
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| id* | path | string | No description |
Responses
200No description
- Schema
Schema Structure
{
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string",
"enum": [
"Post cancelled successfully"
]
}
},
"required": [
"success",
"message"
]
}
400No description
- Schema
Schema Structure
{
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"error": {
"type": "object",
"properties": {
"code": {
"type": "string",
"enum": [
"CANNOT_DELETE"
]
},
"message": {
"type": "string",
"enum": [
"Cannot delete published posts"
]
}
},
"required": [
"code",
"message"
]
}
},
"required": [
"success",
"error"
]
}