POST/users/{userId}/photo
구성원 사진 추가를 위한 사진 URL을 생성한다.
참고
API를 이용한 콘텐츠 업로드 방법에 대해서는 파일 업로드/다운로드를 확인하십시오.
OAuth 2.0 인증.
자세한 인증 방식은 인가·인증를 참고한다.
user
directory
| Parameter | Type | Description |
|---|---|---|
| userId | string | 구성원 ID required example : userf7da-f82c-4284-13e7-030f3b4c756x |
| 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) 이미지 크기는 640 × 640 픽셀 jpg 권장 required maximum : 10485760 format : int64 |
example
1{2 "fileName": "abc.jpg",3 "fileSize": 10244}OK
| Property | Type | Description |
|---|---|---|
| uploadUrl | string | 업로드 URL |
example
1{2 "uploadUrl": "https://apis-storage.worksmobile.com/k/wphotocontact/r/kr1.0/line_If6PHN/img.du_r0RQPt_1629803695068/img.du_r0RQPt_1629803695068.jpg"3}Not Found