POST/users/{userId}/photo

구성원 사진 추가를 위한 사진 URL을 생성한다.

참고
API를 이용한 콘텐츠 업로드 방법에 대해서는 파일 업로드/다운로드를 확인하십시오.

Authorization

oauth2

OAuth 2.0 인증.
자세한 인증 방식은 인가·인증를 참고한다.

Scope

user
directory

HTTP Request

POSThttps://www.worksapis.com/v1.0/users/{userId}/photo

Path Parameters

ParameterTypeDescription
userId string 

구성원 ID
- 메일
- 리소스 ID
- 외부 키 "externalKey:{externalKey}" 형태


required
example : userf7da-f82c-4284-13e7-030f3b4c756x 

Header Parameters

HeadertypeDescription
Authorization string 

Bearer {token}


required 
Content-Type string 

application/json


required
example : application/json 

Request Body

PropertyTypeDescription
fileName string 

파일 이름


required 
fileSize integer 

파일 용량(Byte) 이미지 크기는 640 × 640 픽셀 jpg 권장


required
maximum : 10485760
format : int64 

Request Example

example

1{2  "fileName": "abc.jpg",3  "fileSize": 10244}

Response

HTTP 200

OK

PropertyTypeDescription
uploadUrl string 

업로드 URL

 

Response Example

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}

HTTP 404

Not Found