跳转到主要内容
POST
/
config
/
publish
config/publish
curl --request POST \
  --url https://provisioning.cloudx.io/api/v1/config/publish \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "draft_id": "<string>",
  "version_label": "<string>"
}
'
{
  "config_id": "<string>",
  "version_number": 123,
  "validation": {
    "valid": true,
    "error_count": 123,
    "warning_count": 123,
    "issues": [
      {
        "code": "<string>",
        "message": "<string>",
        "path": "<string>",
        "line": 123,
        "column": 123,
        "length": 123
      }
    ],
    "yaml": "<string>",
    "source": {
      "type": "<string>",
      "name": "<string>"
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.cloudx.io/llms.txt

Use this file to discover all available pages before exploring further.

授权

Authorization
string
header
默认值:YOUR_CLOUDX_API_KEY
必填

Create or manage API keys in CloudX Settings.

请求体

application/json
draft_id
string
必填

Draft config row ID to publish as live.

version_label
string

Optional label for the published config version.

响应

Published config now serving as live.

config_id
string
必填

Published config row ID that is now live.

version_number
integer<int32>
必填

Account-local published config version number.

validation
object
必填