Skip to main content
POST
/
unstable
/
models
/
{modelId}
/
yaml
Create or update YAML files
curl --request POST \
  --url https://{instance}.omniapp.co/api/unstable/models/{modelId}/yaml \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "fileName": "<string>",
  "yaml": "<string>",
  "mode": "combined",
  "commitMessage": "<string>"
}
'
{
  "fileName": "<string>",
  "success": true
}
This API is in beta and may have future breaking changes.

Authorizations

Authorization
string
header
required

Can be either an Organization API Key or Personal Access Token (PAT).

Include in the Authorization header as: Bearer YOUR_TOKEN

Path Parameters

modelId
string<uuid>
required

Model ID

Body

application/json
fileName
string
required

File name (.topic, .view, or special files)

yaml
string
required

YAML content (empty with mode:extension removes file)

mode
enum<string>
required

YAML mode

Available options:
combined,
extension
commitMessage
string
required

Commit message

Response

YAML file updated successfully

fileName
string
success
boolean