Contacts

Upload an avatar

<a class="try-sandbox-link" href="https://sandbox.textmagic.com/#/Contacts/uploadContactAvatar" target="_blank">Try in sandbox</a><br>

post/api/v2/contacts/{id}/avatar

Request

Path parameters

idinteger required

Request body multipart/form-data

imagestring binary required

Contact avatar. Should be a PNG or JPG file not more than 10 MB.

Response

Returned when successful.

idinteger required

Resource ID.

hrefstring required

A link to this resource. If you want to fetch it, just GET this address.

Example response

{
  "id": 515,
  "href": "/api/v2/entity_name/1"
}

Changes

No recorded changes to this operation across all 4 revisions of this API.