POST/contacts/{contactId}/photo
연락처 프로필 사진의 업로드를 요청한다. 응답으로 반환된 URL로 사진을 업로드하면 해당 연락처의 프로필 사진으로 저장된다.
참고
API를 이용한 콘텐츠 업로드 방법에 대해서는 파일 업로드/다운로드를 확인하십시오.
OAuth 2.0 인증.
자세한 인증 방식은 인가·인증을 참고한다.
contact
| Parameter | Type | Description |
|---|---|---|
| contactId | string | 고객/거래처 연락처 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 | 파일 이름 required |
| fileSize | integer | 파일 크기(byte) required minimum : 1 maximum : 10485760 format : int64 |
example
1{2 "fileName": "fileName",3 "fileSize": 10000004}OK
| Property | Type | Description |
|---|---|---|
| uploadUrl | string | 사진을 업로드할 수 있는 URL |
example
1{2 "uploadUrl": "https://apis-storage.worksmobile.com/b/ZzezmFWdVTHLJOJJuLnYE5Bc1JN3U9RCkvlN32ZBNdK5FhnmcFBtnLvHuK3bdeExNN3lkK19Ihl9fFK7JuKL9DjYUTJMEAWjWWXtnelfCri5/e76pw3I6lHGcw?fileId=jhkhjugjbgjjbrulbiujindctjveedeebjblbrkiicri"3}Bad Request
Forbidden