POST/business-support/approval/users/{userId}/documents/attachments
회사 서식 기안 시 필요한 첨부 파일을 추가한다.
OAuth 2.0 인증.
자세한 인증 방식은 인가·인증을 참고한다.
businessSupport.approval
| Parameter | Type | Description |
|---|---|---|
| userId | string | 구성원 ID required |
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
| Content-Type | string | application/json required example : application/json |
| Property | Type | Description |
|---|---|---|
| documentFormId | string | 서식 ID required minLength : 1 maxLength : 100 |
| componentId | string | 서식 내부 컴포넌트 ID required minLength : 1 maxLength : 100 |
| fileName | string | 첨부 파일명 required minLength : 1 maxLength : 200 |
| fileSize | integer | 첨부 파일 크기(단위: 바이트) required minimum : 1 maximum : 2147483648 |
example
1{2 "documentFormId": "7679350f-45e2-4d0d-1870-03d446661405",3 "componentId": "96b02530-82de-41c8-8223-3055c74e705e",4 "fileName": "ExampleFile.pdf",5 "fileSize": 102400006}OK
| Property | Type | Description |
|---|---|---|
| documentFormId | string | 서식 ID required |
| componentId | string | 서식 내부 컴포넌트 ID required |
| fileId | string | 파일 ID required |
| uploadUrl | string | 첨부 파일 업로드 URL required format : uri |
example
1{2 "documentFormId": "7679350f-45e2-4d0d-1870-03d446661405",3 "componentId": "96b02530-82de-41c8-8223-3055c74e705e",4 "fileId": "kr1.1000213.1560c57b-97f6-4cdf-b6c6-a92b758a0f83",5 "uploadUrl": "https://apis-storage.worksmobile.com/k1/workplace/kr1/tmp/1560c57b-97f6-4cdf-b6c6-a92b758a0f83"6}