POST/contacts/{contactId}/photo
Uploads a contact profile photo. Use the URL returned as a response to upload the photo, then the photo is saved as the profile photo of the contact.
Note
For how to upload content using the API, see Upload or Download Files.
OAuth 2.0 authentication.
For more information, see Authentication and Authorization.
contact
| Parameter | Type | Description |
|---|---|---|
| contactId | string | Customer/client contact ID required example : contact2-a56d-44a4-5304-033e16fca8d1 |
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
| Content-Type | string | application/json required example : application/json |
| Property | Type | Description |
|---|---|---|
| fileName | string | File name required |
| fileSize | integer | File size (in bytes) required minimum : 1 maximum : 10485760 format : int64 |
example
1{2 "fileName": "fileName",3 "fileSize": 10000004}OK
| Property | Type | Description |
|---|---|---|
| uploadUrl | string | URL to upload a contact photo. |
example
1{2 "uploadUrl": "https://apis-storage.worksmobile.com/b/ZzezmFWdVTHLJOJJuLnYE5Bc1JN3U9RCkvlN32ZBNdK5FhnmcFBtnLvHuK3bdeExNN3lkK19Ihl9fFK7JuKL9DjYUTJMEAWjWWXtnelfCri5/e76pw3I6lHGcw?fileId=jhkhjugjbgjjbrulbiujindctjveedeebjblbrkiicri"3}Bad Request
Forbidden