Upsert a DataAssembly in a preview session

Upsert a data assembly using its ID in the path. Send the complete entity configuration without sys; any supplied sys is overwritten with the route’s entity ID and type. Use the same Content Management API token that created the session.

Authentication

AuthorizationBearer

A Content Management API token, sent as Authorization: Bearer <token>.

Path parameters

spaceIdstringRequired
environmentIdstringRequired
sessionIdstringRequired
idstringRequired

Request

Body
metadataobjectRequired
namestringRequired
descriptionstringRequired
parametersmap from strings to objects or list of objectsRequired
resolversmap from strings to objectsRequired
returnstring or object or map from strings to strings or objects or PreviewSessionDefinitionSchema035Required
sysanyOptional

Response

200
sysobject
metadataobject
namestring
descriptionstring
parametersmap from strings to objects or list of objects
resolversmap from strings to objects
returnstring or object

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
413
Content Too Large Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error