Upload or replace a contact's avatar
POST/api/contacts/:contactId/avatar
Multipart upload of a single avatar image for a contact, stored on the
tenant-scoped avatar disk (the same scheme as the staff /me/avatar
upload). The MIME is validated against the detected type, not the client
content-type. Gated by the contact update ability (agent+). Returns the
contact with the new avatar_url.
Request
Responses
- 200
- 401
- 403
- 404
- 422
The updated contact.
Not authenticated. code: account_disabled means the member's seat was deactivated in this workspace: the session is over even though the token was not revoked (clients sign out and clean up).
Authenticated but not allowed.
Resource not found (or not visible to the current tenant).
The request failed validation.