Skip to main content

Publish a draft post immediately

post/v1/social/posts/{id}/publish

Publish a draft post immediately

Request

Parameters

NameInTypeDescription
id*pathstringNo description

Responses

200No description
Schema Structure
{
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"data": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"status": {
"type": "string"
}
},
"required": [
"id",
"status"
]
},
"message": {
"type": "string",
"enum": [
"Post is being published"
]
}
},
"required": [
"success",
"data",
"message"
]
}
400No description
Schema Structure
{
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"error": {
"type": "object",
"properties": {
"code": {
"type": "string",
"enum": [
"INVALID_STATUS"
]
},
"message": {
"type": "string",
"enum": [
"Can only publish draft posts"
]
}
},
"required": [
"code",
"message"
]
}
},
"required": [
"success",
"error"
]
}