Uploads a new avatar for the specified contact and returns the created attachment.
Headers
-
API token (can be retrieved from account settings)
-
ID of organization, for which the operation must be performed
POST
/api-v1/attachment/upload-avatar/{contactId}
curl \
--request POST 'https://wyzio.app/api-v1/attachment/upload-avatar/{contactId}' \
--header "Content-Type: multipart/form-data" \
--form "file=@file"
Response examples (200)
{
"id": 42,
"name": "string",
"remark": "string",
"size": 42,
"mimeType": "string",
"content": "string"
}