Create External Approval Documents v2
- Print
- PDF
Create External Approval Documents v2
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
Description
It creates a pop-up window URL to use the API to create a document in a form created by the form generator.
If you open the pop-up window with the URL created, you can see that the initial data is inserted in the Create document screen.
Request URL
POST https://workplace.apigw.ntruss.com/workflow/apigw/v2/company/{companyId}/fg/{dfmId}/doc/popup
Request Header
Header | Description |
---|---|
x-ncp-apigw-timestamp | |
x-ncp-iam-access-key | Access key ID issued on the NAVER Cloud Platform portal or by Sub Account |
x-ncp-apigw-signature-v2 |
Request Path Parameters
Parameter | Type | Size | Requirement status | Description |
---|---|---|---|---|
companyId | String | 36 | Y | Integration key (companyId) Developers > Basic settings > Integration key |
dfmId | String | 36 | Y | Form ID |
Request Body Parameters
Parameter | Type | Size | Requirement status | Description |
---|---|---|---|---|
title | String | 1000 | N | Subject |
dfmId | String | 36 | Y | Form ID |
dataList | List | Y | Component data configured in the form body - Component dataList parameter |
Request Examples
POST https://workplace.apigw.ntruss.com/workflow/apigw/v2/company/187d83ad-4038-45b6-8e7c-59eca16fdc46/fg/dda81449-adb8-47a0-869b-d748b4d3c03e/doc/popup
POST /workflow/apigw/v2/company/187d83ad-4038-45b6-8e7c-59eca16fdc46/fg/dda81449-adb8-47a0-869b-d748b4d3c03e/doc/popup
HOST: workplace.apigw.ntruss.com
Content-Type: application/json
x-ncp-apigw-timestamp: 1505290625682
x-ncp-iam-access-key: D78BB444D6D3C84CA38A
x-ncp-apigw-signature-v2: WTPItrmMIfLUk/UyUIyoQbA/z5hq9o3G8eQMolUzTEo=
{
"title": "[External integration] approval document draft",
"dfmId": "dda81449-adb8-47a0-869b-d748b4d3c03e",
"dataList": [
{
"componentValue": "홍길동",
"componentCode": "CP_TEXT",
"componentUuid": "cebd07e7-c340-d238-545f-1e9603224fde"
}
]
}
Response Examples
Returned value | Description |
---|---|
companyId | Company ID |
dfmId | Form ID |
popupDocKey | Unique key issued when the API is successfully called |
redirectUrl | URL to be opened by the pop-up window |
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 12 Sep 2020 01:18:11 GMT
Content-Type: application/json;charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Access-Control-Allow-Origin: *
x-ncp-trace-id: 68d1o68pm4cr63gc3169gm4p34
{
"companyId": "187d83ad-4038-45b6-8e7c-59eca16fdc46",
"dfmId": "dda81449-adb8-47a0-869b-d748b4d3c03e",
"popupDocKey": "c1d8a519-e7a5-4c7f-a038-35f7f3af0fee",
"redirectUrl": "http://dev-ncpworkplace.com/user/write/fg-dfm/dda81449-adb8-47a0-869b-d748b4d3c03e?companyId=187d83ad-4038-45b6-8e7c-59eca16fdc46&popupDocKey=c1d8a519-e7a5-4c7f-a038-35f7f3af0fee"
}
Was this article helpful?