Skip to navigation

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

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

spaceIdstringRequired
environmentIdstringRequired
sessionIdstringRequired
idstringRequired

Request

This endpoint expects an object.
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 maps from strings to PreviewSessionDefinitionSchema03Required
sysanyOptional

Response

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

Errors

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