API Configurationconfig/publish POST /config/publish
Publish a draft configuration as the live config. Requires the configuration:write permission. The draft is validated with the same publish-time checks used by the CloudX app before it becomes live.
cURL
curl -X POST "https://provisioning.cloudx.io/api/v1/config/publish" \
-H "Authorization: Bearer $CLOUDX_API_KEY" \
-H "Content-Type: application/json" \
-d '{"draft_id":"<string>","version_label":"<string>"}'Body Responses 200 400 401 403 404 500
Published config now serving as live.
{
"config_id": "<string>",
"version_number": 123,
"validation": {
"valid": true,
"error_count": 123,
"warning_count": 123,
"issues": [
{
"code": "<string>",
"path": "<string>",
"message": "<string>",
"severity": "error",
"line": 123,
"column": 123,
"length": 123
}
],
"yaml": "<string>",
"source": {
"type": "<string>",
"name": "<string>"
}
}
}200 Published config now serving as live.400 Invalid request or blocking config validation failure.404 Draft config not found.500 Internal server error. 上一页config/edit 下一页 config/history