Publish a draft post immediately
post/v1/social/posts/{id}/publish
Publish a draft post immediately
Request
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| id* | path | string | No description |
Responses
200No description
- Schema
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
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"
]
}