Publish a site
POST
https://api.vidmoat.com/v1/interactive-sites/{id}/publishMake the draft what the site's address shows to anyone, or take the site down.
Path parameters#
idstringrequiredThe site id.
Body#
publishbooleandefaulttruefalsetakes it down; the published copy is kept.
Response#
Returns 200.
Response fields#
publishedbooleanWhether the site is live now.urlstringWithpublish: true: the site's address.notestringWhen published but not shown yet (the plan or a restriction), why.
Errors#
Besides the errors any request can get (authentication, rate limits):
| Status | Code | When |
|---|---|---|
| 404 | not_found | No such project, or it is not yours. The two are indistinguishable on purpose. |
| 402 | plan_required | Not on this plan, publishing is paused on the account, or the site was taken offline by Vidmoat. |
| 409 | conflict | A page is empty, or a video or picture is not the account's own published one (problems lists them). |