Skip to navigation

Change type of agreement

View as Markdown

Changes the type of an existing agreement to a different configured type. The target type must exist in the account’s agreement-types collection. Upon successful change, the server recomputes the category based on the new type.

Authentication

AuthorizationBearer

Path parameters

accountIdstringRequiredformat: "^[{]?[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}[}]?$"
agreementIdstringRequiredformat: "^[{]?[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}[}]?$"

Request

JSON payload specifying the target agreement type.
typestringRequired

The name of the target agreement type from the agreement-types collection.

Response

The agreement type has been successfully changed. Returns the updated agreement.
idstringOptionalRead-onlyformat: "uuid"
Unique identifier of the agreement.
titlestringOptional
Title of the agreement.
typestringOptional
The updated agreement type.
categorystringOptional

Server-recomputed category based on new type.

statusstringOptional
Current status of the agreement.
metadataobjectOptional
_actionsobjectOptional
Available actions on the agreement.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
500
Internal Server Error