curl --request PUT \
--url https://sandbox.circularo.com/api/v1/users/{id}/upload \
--header 'Authorization: Bearer <token>' \
--form 'initialsData[0][imageId]=s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj' \
--form 'initialsData[0][name]=My image' \
--form 'photo=@document.pdf' \
--form 'signaturesData[0][imageId]=s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj' \
--form 'signaturesData[0][name]=My image'{
"delegation": {
"activationNotificationSent": false,
"deactivationNotificationSent": false,
"time": {
"end": "2023-11-07T05:31:56Z",
"start": "2023-11-07T05:31:56Z"
},
"user": "jane.doe@example.com"
},
"initials": [
{
"imageId": "s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj",
"name": "Full signature"
}
],
"language": "en",
"navigationOpen": true,
"notifications": {
"enableAlerts": true,
"inApp": [
"shareForSign"
],
"mail": [
"shareForSign"
],
"push": [
"shareForSign"
]
},
"photo": {
"big": "<string>",
"medium": "<string>",
"nano": "<string>",
"small": "<string>"
},
"scheduler": true,
"signature": [
{
"imageId": "s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj",
"name": "Full signature"
}
],
"view": "tableView"
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 404,
"type": "RESOURCE:NOT_FOUND",
"message": "Resource not found",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 409,
"type": "RESOURCE:STATE_CONFLICT",
"message": "Resource state conflict",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Set a user's profile picture, signature and initials
PUT /users/{id}/upload
Sets the images somebody else’s account is shown and signs with: the profile picture as an uploaded file, and the signature and initials as references to files uploaded beforehand. Each part is optional, so one request can change the picture, the signatures, the initials, or all of them at once, and the change is written to the audit log.
Both lists replace what was stored rather than adding to it, and whatever they drop is deleted along with its file. A file may appear only once, and one that already serves as initials cannot be handed over as a signature. The answer is the account’s configuration as it now stands, with the new images in it.
Token authorization: Authorize using a token — either a session token obtained from login or an API key — to call this endpoint.
Required user rights: update_users
Required user role: admin or organization_admin
curl --request PUT \
--url https://sandbox.circularo.com/api/v1/users/{id}/upload \
--header 'Authorization: Bearer <token>' \
--form 'initialsData[0][imageId]=s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj' \
--form 'initialsData[0][name]=My image' \
--form 'photo=@document.pdf' \
--form 'signaturesData[0][imageId]=s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj' \
--form 'signaturesData[0][name]=My image'{
"delegation": {
"activationNotificationSent": false,
"deactivationNotificationSent": false,
"time": {
"end": "2023-11-07T05:31:56Z",
"start": "2023-11-07T05:31:56Z"
},
"user": "jane.doe@example.com"
},
"initials": [
{
"imageId": "s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj",
"name": "Full signature"
}
],
"language": "en",
"navigationOpen": true,
"notifications": {
"enableAlerts": true,
"inApp": [
"shareForSign"
],
"mail": [
"shareForSign"
],
"push": [
"shareForSign"
]
},
"photo": {
"big": "<string>",
"medium": "<string>",
"nano": "<string>",
"small": "<string>"
},
"scheduler": true,
"signature": [
{
"imageId": "s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj",
"name": "Full signature"
}
],
"view": "tableView"
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 404,
"type": "RESOURCE:NOT_FOUND",
"message": "Resource not found",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 409,
"type": "RESOURCE:STATE_CONFLICT",
"message": "Resource state conflict",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Authorizations
Path Parameters
Body
Response
Returns the account's configuration with the new images in place.