Publishing
Retry a post
Publish a post again to the networks where it failed.
POST
https://api.sangtao.ai/v2/publishing/posts/{id}/retryAuthorization
X-Api-Keystring · headerrequiredYour API key, from the API keys page of your account.
Path parameters
idstringrequiredThe ID in the path.
Publishes again to the networks whose status is Failed; the ones already published are left alone. No body. A retry is not charged as a new post.
Response
statusstringrequiredThe post's status after the retry started
Available options:
PendingProcessingDraftUploadingScheduledPublishingPublishedPartiallyPublishedFailedCancelledretriedPlatformsstring[]requiredThe networks being retried — those that were Failed; they are now Retrying
The three 400s carry their reason in error, with no errorCode.
Errors
| Status | errorCode | When |
|---|---|---|
| 400 | — | error "no_failed_platforms": no network of the post has failed |
| 400 | — | error "missing_external_post": the post never got as far as publishing — publish it again instead |
| 400 | — | error "retry_failed": the retry could not be started — try again later |
| 404 | POST_NOT_FOUND | No post of yours with this id |
POST
/publishing/posts/{id}/retrycurl -X POST "https://api.sangtao.ai/v2/publishing/posts/7c9e6679-7425-40de-944b-e07fc1f90ae7/retry" \
-H "X-Api-Key: YOUR_API_KEY"{
"success": true,
"data": {
"status": "Publishing",
"retriedPlatforms": [
"YouTube"
]
}
}POST
/publishing/posts/{id}/retrycurl -X POST "https://api.sangtao.ai/v2/publishing/posts/7c9e6679-7425-40de-944b-e07fc1f90ae7/retry" \
-H "X-Api-Key: YOUR_API_KEY"{
"success": true,
"data": {
"status": "Publishing",
"retriedPlatforms": [
"YouTube"
]
}
}