Update Model Content in Package
Swagger UIyaml/design-api/ workspaces/ {workspaceKey}/ {packageType}s/ {packageKey}/ models/ {modelType}/ {modelKey}/ contentPath parameters
workspaceKeystringrequiredThe key of the workspace
packageTypestringrequiredThe type of the package
apppluginpackageKeystringrequiredThe key of the package
modelTypestringrequiredThe type of the model
bpmnformappdmncmmnactiondocumentuserpagesecuritydataObjecttemplateserviceliquibasechanneleventdecisionServicequeryvariableExtractorsequencedataDictionarypalettesladashboardComponentpluginpluginTaskagentknowledgeBasemasterDatamodelKeystringrequiredThe key of the model
Request body application/json · ModelContentUpdateRequest
contentobjectrequiredThe model definition content. Depending on the modelType this can be a json object or a string
svgstringThe model definition SVG. If the model does not have an SVG this should not be set
pngstringThe model definition PNG image, sent as a base64 encoded string. If the model does not have a PNG image this should not be set
newVersionbooleanWhether a new version to be created when updating the model
Responses
Indicates the request was successful. · ModelDetailsResponse
idstringrequiredThe technical id of the model
keystringrequiredThe key of the model
workspaceIdstringrequiredThe workspace id that the model belongs to
workspaceKeystringrequiredThe workspace key that the model belongs to
modelTypestringThe type of the model
bpmnformappdmncmmnactiondocumentuserpagesecuritydataObjecttemplateserviceliquibasechanneleventdecisionServicequeryvariableExtractorsequencedataDictionarypalettesladashboardComponentpluginpluginTaskagentknowledgeBasemasterDataExample: app
modelSubTypestringThe sub type of the model
Example: text
namestringThe name of the model
descriptionstringThe description of the model
versioninteger (int32)The version of the model
paletteDefinitionCategorystringThe category of the palette definition for this model
paletteDefinitionKeystringThe key of the palette definition for this model
createdBystringThe id of the user that created the model
createdstringThe ISO 8601 creation timestamp of the model
Example: 2021-02-15T11:01:04.635Z
lastUpdatedBystringThe id of the user that last the model
lastUpdatedstringThe ISO 8601 last update timestamp of the model
Example: 2021-02-15T11:01:04.635Z
visibilitystringThe visibility of the model
publicprivateinternallockedBystringThe id of the user that has the lock on the model
lockedAtstringThe ISO 8601 timestamp of the lock time of the model
Example: 2021-02-15T11:01:04.635Z
tagsstring[]The tags of the model
templatebooleanFlag indicating whether this model is a model template
Example: true
childbooleanFlag indicating whether this model is a direct child of the app in which it was requested. If not set then it is not known
starredbooleanFlag indicating whether this model is starred by the user querying it. If not set then it is not known
modelStatestring[]The state that the model is at. If not set then it is not known
EDITABLELOCKING_ENABLEDNEEDS_MIGRATIONvalidationStatusstringThe validation status of the model
permissionsstring[]The permissions that the user requesting the model is allowed to do
contentobjectThe model definition content. Depending on the modelType this can be a json object or a string
requiredGrey names have no description in the spec