Creates or overwrites a YAML file for a model. The file can be a special file (model or relationships) or a YAML file ending in .topic or .view.
The following models cannot be edited using this endpoint:
Can be either an Organization API Key or Personal Access Token (PAT).
Include in the Authorization header as: Bearer YOUR_TOKEN
The ID of the model.
The name of the YAML file. Valid values are:
model - Model filerelationships - Relationships file<topic_name>.topic - Topic file<view_name>.view - View fileThe YAML contents of the file. This can be empty, in which case:
mode: extension the file will be removed from the modelmode: combined, the file will be ignored in the modelThe mode to use when creating or overwriting the YAML file.
Note: Workbook models must use combined mode if there is a branchId.
combined, extension, staged Required if git pull requests are required for the model. The ID of the branch to create or update.
Required for git-enabled models. Commit message describing the change.
Checksum of the file when fetched, for conflict detection. Obtain this value from the Get model YAML endpoint by including the includeChecksums parameter.
If the file has been modified since you fetched it, the request will fail with a File has been modified since it was fetched error.