API Reference
Publish or update a public API
Creates a new public API or updates an existing one, and records an immutable version snapshot. The API is org-scoped — no team required.
- If
publicApiIdis provided: update that API. - If omitted: create a new public API using
apiSlug+title. - Version conflict: same tag + same spec = idempotent OK; same tag + different spec = 409.
Header Parameters
X-Org-Id*string
Format
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://loading/api-management/cli/v1/public-publish" \ -H "X-Org-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{ "version": "string", "openapiSpec": "string" }'{
"publicApiId": "6cdb160e-37b9-4802-86c1-ee5fed60dba5",
"apiSlug": "string",
"orgSlug": "string",
"version": "string",
"visibility": "string",
"created": true,
"versionCreated": true,
"publicUrl": "string"
}{
"status": 0,
"title": "string",
"detail": "string"
}{
"status": 0,
"title": "string",
"detail": "string"
}{
"status": 0,
"title": "string",
"detail": "string"
}