Update an Agreement
PUT/agreements/:agreement_id
Updates an agreement. The agreement must be in draft or open status.
Request
Path Parameters
PUT /agreements/:agreement_id parameter
- application/json
Body
PUT /agreements/:agreement_id request body
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
issuer object
The issuer of the agreement. If not provided, the authenticated client will be used.
The name of the issuer
The email of the issuer. Will be used for communication if email communication is enabled for the agreement.
Possible values: [observer
, signer
, approver
]
The role of the issuer within the signing process.
Enables email communication in the agreement process. If not provided, the default value is true. If disabled, you will be responsible for handling all communication.
Possible values: [SES
, AES
, QES
]
The minimum trust level used for all signatures in accordance with the eIDAS regulation. If not provided, the default value is SES.
Enables signing order for the agreement process. If not provided, the default value is false. If enabled, the signers will be required to sign in the order in which they are defined.
theme object
The ID of the theme to use for the agreement.
Possible values: [true
]
Disconnects the theme from the agreement.
success_callback_url object
string
Possible values: [true
]
default_locale object
The default locale of the signing process. Can be overridden by individual participants, but the default locale determines the primary language used in all communication and UI.
string
string
lookup_key object
string
Possible values: [true
]
Responses
- 200
- 400
PUT /agreements/:agreement_id Successful response
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD2
- MOD3
- MOD1
- MOD2
- MOD3
- Array [
- ]
- MOD1
- MOD2
- MOD3
- Array [
- ]
- Array [
- MOD1
- 118cb3b11b8a1f3b6b1e60a89f96a8be9da32a0f
- MOD3
- Array [
- ]
- MOD1
- MOD3
- Array [
- ]
- ]
- MOD1
- MOD2
- MOD3
- MOD1
- MOD2
- MOD3
- Array [
- ]
- Array [
- MOD1
- MOD2
- ]
- MOD1
- MOD2
- MOD3
- MOD1
- MOD2
Possible values: [1.0
]
The version of the response schema
Possible values: [single
]
A single object of the agreement resource.
Possible values: [agreement
]
Data contains the agreement resource.
data objectrequired
The resource data.
The unique identifier of the agreement
Possible values: [agreement
]
Indicates if the agreement is created using a development client
Possible values: [draft
, pending
, fulfilled
, cancelled
, generating
, failed_to_generate
, open
]
The status of the agreement
Possible values: [SES
, AES
, QES
]
The minimum trust level for the signatures.
If the agreement is in a cancelled state, this will be a short description on the reason why, otherwise it will be null.
theme object required
string
Possible values: [1.0
]
The version of the response schema
Possible values: [single
]
A single object of the theme resource.
Possible values: [theme
]
Data contains the theme resource.
data objectrequired
The resource data.
The unique identifier of the theme
Possible values: [theme
]
logo objectrequired
The logo of the theme. This is displayed to the user in all communication and touch points.
Possible values: [1.0
]
The version of the response schema
Possible values: [single
]
A single object of the file resource.
Possible values: [file
]
Data contains the file resource.
data objectrequired
The resource data.
The unique identifier of the file
Possible values: [file
]
Possible values: non-empty
The complete filename including the file extension
Possible values: non-empty
The mime type of the file
The signed read url of the file
metadata object
A provided lookup key provided by you to help you identify the file.
UTC datetime ISO string
UTC datetime ISO string
icon objectrequired
The icon of the theme. This is used for the favicon.
Possible values: [1.0
]
The version of the response schema
Possible values: [single
]
A single object of the file resource.
Possible values: [file
]
Data contains the file resource.
data objectrequired
The resource data.
The unique identifier of the file
Possible values: [file
]
Possible values: non-empty
The complete filename including the file extension
Possible values: non-empty
The mime type of the file
The signed read url of the file
metadata object
A provided lookup key provided by you to help you identify the file.
UTC datetime ISO string
UTC datetime ISO string
Default value: #000000
The primary color used to create the color palette in the signing room.
metadata object
A provided lookup key provided by you to help you identify the theme.
UTC datetime ISO string
UTC datetime ISO string
string
issuer objectrequired
The issuer of the agreement
The name of the issuer. Required if no email is provided.
The email of the issuer. Required if agreemnt is configured to send emails.
Possible values: [signer
, approver
, observer
]
The role of the issuer in the agreement process.
If the issuer is a signer or approver this is the ID of the related participant.
The URL to the signing room for the issuer. Only available after the agreement has been finalized for signing.
participants object required
string
Possible values: [1.0
]
The version of the response schema
Possible values: [list
]
A non-paginated list of the participant resource.
Possible values: [participant
]
Data contains the participant resource.
string
signing_groups object
string
Possible values: [1.0
]
The version of the response schema
Possible values: [list
]
A non-paginated list of the signing group resource.
Possible values: [signing_group
]
Data contains the signing group resource.
data object[]required
The unique identifier of the signing group
Possible values: [signing_group
]
The name of the signing group
Possible values: [draft
, pending
, fulfilled
]
The status of the signing group
Possible values: >= 5e-324
and <= 1.7976931348623157e+308
The queue number of the signing group
participants object required
string
Possible values: [1.0
]
The version of the response schema
Possible values: [single
]
A single object of the signing_group resource.
Possible values: [signing_group
]
Data contains the signing_group resource.
data objectrequired
The resource data.
The unique identifier of the signing group
Possible values: [signing_group
]
The name of the signing group
Possible values: [draft
, pending
, fulfilled
]
The status of the signing group
Possible values: >= 5e-324
and <= 1.7976931348623157e+308
The queue number of the signing group
participants object required
string
string
The unique identifier of the agreement this signing group belongs to
UTC datetime ISO string
UTC datetime ISO string
string
The unique identifier of the agreement this signing group belongs to
UTC datetime ISO string
UTC datetime ISO string
string
documents object
original_documents objectrequired
main object required
The main document which will be signed.
string
Possible values: [1.0
]
The version of the response schema
Possible values: [single
]
A single object of the file resource.
Possible values: [file
]
Data contains the file resource.
data objectrequired
The resource data.
The unique identifier of the file
Possible values: [file
]
Possible values: non-empty
The complete filename including the file extension
Possible values: non-empty
The mime type of the file
The signed read url of the file
metadata object
A provided lookup key provided by you to help you identify the file.
UTC datetime ISO string
UTC datetime ISO string
string
attachments object
string
Possible values: [1.0
]
The version of the response schema
Possible values: [list
]
A non-paginated list of the attachment resource.
Possible values: [attachment
]
Data contains the attachment resource.
data object[]required
The unique identifier of the attachment
Possible values: [attachment
]
The unique identifier of the agreement which this attachment belongs to
Possible values: <= 9007199254740991
The order of this attachment relative to the other attachments
file object required
string
Possible values: [1.0
]
The version of the response schema
Possible values: [single
]
A single object of the file resource.
Possible values: [file
]
Data contains the file resource.
data objectrequired
The resource data.
The unique identifier of the file
Possible values: [file
]
Possible values: non-empty
The complete filename including the file extension
Possible values: non-empty
The mime type of the file
The signed read url of the file
metadata object
A provided lookup key provided by you to help you identify the file.
UTC datetime ISO string
UTC datetime ISO string
UTC datetime ISO string
UTC datetime ISO string
string
signed_document object required
The finalized and signed document.
string
Possible values: [1.0
]
The version of the response schema
Possible values: [single
]
A single object of the file resource.
Possible values: [file
]
Data contains the file resource.
data objectrequired
The resource data.
The unique identifier of the file
Possible values: [file
]
Possible values: non-empty
The complete filename including the file extension
Possible values: non-empty
The mime type of the file
The signed read url of the file
metadata object
A provided lookup key provided by you to help you identify the file.
UTC datetime ISO string
UTC datetime ISO string
string
signing_order objectrequired
communication objectrequired
default_locale object
string
string
metadata object
A provided lookup key provided by you to help you identify the agreement.
A provided callback url to refer the participants back to post successful action.
UTC datetime ISO string
UTC datetime ISO string
{
"version": "1.0",
"result_type": "single",
"resource_type": "agreement",
"data": {
"id": "cwcd42fqscmorwntephexample",
"resource_type": "agreement",
"test_mode": true,
"status": "draft",
"trust_level": "SES",
"cancellation_reason": null,
"theme": "cxv28xqgqktyoajmddmexample",
"issuer": {
"name": "John Doe",
"email": "example@example.com",
"role": "signer",
"participant_id": "cuk8n9ci5tuyz5tptklexample",
"signing_room_url": "https://www.zigned.se/sign/cnwrigexrrglugtaakzexample/cpi2oci7tfl8eck0fagexample"
},
"participants": [
"c8zp9jlfcrkwkocc0drexample",
"cbs0juz35a5knxxmf0sexample",
"ciyqqr541jrr48kgj9uexample"
],
"signing_groups": [
"c8zp9jlfcrkwkocc0drexample",
"cbs0juz35a5knxxmf0sexample",
"ciyqqr541jrr48kgj9uexample"
],
"documents": {
"original_documents": {
"main": "cbg4jfmjjyxtge1ehebexample",
"attachments": [
"c8zp9jlfcrkwkocc0drexample",
"cbs0juz35a5knxxmf0sexample",
"ciyqqr541jrr48kgj9uexample"
]
},
"signed_document": "cqadz8ejnsqkw3ie3kjexample"
},
"signing_order": {
"enabled": true,
"grouped": true
},
"communication": {
"send_emails": true,
"default_locale": "sv-SE"
},
"metadata": {
"lookup_key": "your_internal_customer_id",
"success_callback_url": "https://yourdomain.com/sign-complete"
},
"updated_at": "2024-01-01T00:00:00.000Z",
"created_at": "2024-01-01T00:00:00.000Z"
}
}
PUT /agreements/:agreement_id Error response
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [error
]
error objectrequired
Possible values: >= 400
and <= 599
{
"status": "error",
"error": {
"code": 0,
"message": "string",
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
}