Members
- Print
- PDF
Members
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Description
Adds, edits and deletes member information of your company in WORKBOX.
Add
Adds member information.
Request URL
POST https://workbox.apigw.ntruss.com/workbox/workbox/openapi/v1/organization/company/{companyId}/user/{externalKey}
Request header
Header | Description |
---|---|
x-ncp-apigw-timestamp | It is the number of milliseconds that have elapsed since January 1, 1970 00:00:00 UTC. If the time difference with the API Gateway server is more than 5 minutes, the request is considered invalid. x-ncp-apigw-timestamp:{Timestamp} |
x-ncp-apigw-api-key | API key issued by API Gatewayx-ncp-apigw-api-key:{API Gateway API Key} |
x-ncp-iam-access-key | Access Key ID issued from the NAVER CLOUD PLATFORM portal. x-ncp-iam-access-key:{Account Access Key} |
x-ncp-apigw-signature-v1 | Signature encrypted with your Access Key ID and Secret Key. x-ncp-apigw-signature-v1:{API Gateway Signature} |
Content-Type | Set the request body content type to application/json.Content-Type: application/json |
Request path parameters
Parameter | Type | Length | Required | Description |
---|---|---|---|---|
companyId | String | 36 | Y | API key (CompanyId). Developers > Basic Settings > API Key |
externalKey | String | 36 | Y | External key for a member |
Request body parameters
Parameter | Type | Length | Required | Description |
---|---|---|---|---|
name | String | 100 | Y | Name |
i18nNames | Map | N | Name in multiple languages Map<Locale, String> i18nNames | |
deptExternalKey | String | 36 | N | External key for a department |
gradeExternalKey | String | 100 | N | External key for a job grade |
positionExternalKey | String | 100 | N | External key for a job title |
emailAddr | String | 100 | Y | Business email address (login ID) |
telNo | String | 30 | N | Telephone number |
cphNo | String | 100 | N | Mobile phone number |
localeTypeCd | String | N | Locale information | |
tmznTypeCd | String | N | Timezone information |
Request example
POST https://workbox.apigw.ntruss.com/workbox/workbox/openapi/v1/organization/company/578c7009-bdad-4493-9835-72302cf988c6/emp/EX00001
POST /openapi/v1/organization/company/578c7009-bdad-4493-9835-72302cf988c6/emp/EX00001
HOST: workbox.apigw.ntruss.com
Content-Type: application/json
x-ncp-apigw-timestamp: 1505290625682
x-ncp-apigw-api-key: DUxjP4HYTP8V7khBkgywdDHQjKuaYWGrppHKpvdv
x-ncp-iam-access-key: D78BB444D6D3C84CA38A
x-ncp-apigw-signature-v1: WTPItrmMIfLUk/UyUIyoQbA/z5hq9o3G8eQMolUzTEo=
{
"deptExternalKey": "00002",
"emailAddr": "gildong@sample.co.kr",
"name": "홍길동",
"i18nNames": {
"ko_KR": "홍길동",
"en_US": "gildong"
},
"gradeExternalKey" : "grade001",
"telNo" :"0317841111",
"cphNo" : "01012341234",
"localeTypeCd":"ko_KR",
"tmznTypeCd" : "Asia/Seoul",
"positionExternalKey" : "pos001"
}
Response example
HTTP/1.1 201 OK
Server: nginx
Date: Wed, 12 Sep 2018 10: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
{
"deptExternalKey": "00002",
"emailAddr": "gildong@sample.co.kr",
"name": "홍길동",
"i18nNames": {
"ko_KR": "홍길동",
"en_US": "gildong"
},
"gradeExternalKey" : "grade001",
"telNo" :"0317841111",
"cphNo" : "01012341234",
"localeTypeCd":"ko_KR",
"tmznTypeCd" : "Asia/Seoul",
"positionExternalKey" : "pos001"
}
Edit
Edits member information.
You should pass all the information including items you don’t need to edit. (You cannot edit only part of the member information.)
Request URL
PUT https://workbox.apigw.ntruss.com/workbox/workbox/openapi/v1/organization/company/{companyId}/user/{externalKey}
Request header
Header | Description |
---|---|
x-ncp-apigw-timestamp | It is the number of milliseconds that have elapsed since January 1, 1970 00:00:00 UTC. If the time difference with the API Gateway server is more than 5 minutes, the request is considered invalid. x-ncp-apigw-timestamp:{Timestamp} |
x-ncp-apigw-api-key | API key issued by API Gatewayx-ncp-apigw-api-key:{API Gateway API Key} |
x-ncp-iam-access-key | Access Key ID issued from the NAVER CLOUD PLATFORM portal. x-ncp-iam-access-key:{Account Access Key} |
x-ncp-apigw-signature-v1 | Signature encrypted with your Access Key ID and Secret Key. x-ncp-apigw-signature-v1:{API Gateway Signature} |
Content-Type | Set the request body content type to application/json.Content-Type: application/json |
Request path parameters
Parameter | Type | Length | Required | Description |
---|---|---|---|---|
companyId | String | 36 | Y | API key (CompanyId). Developers > Basic Settings > API Key |
externalKey | String | 36 | Y | External key for a member |
Request body parameters
Parameter | Type | Length | Required | Description |
---|---|---|---|---|
name | String | 100 | Y | Name |
i18nNames | Map | N | Name in multiple languages Map<Locale, String> i18nNames | |
deptExternalKey | String | 36 | N | External key for a department |
gradeExternalKey | String | 100 | N | External key for a job grade |
positionExternalKey | String | 100 | N | External key for a job title |
telNo | String | 30 | N | Telephone number |
cphNo | String | 100 | N | Mobile phone number |
localeTypeCd | String | N | Locale information | |
tmznTypeCd | String | N | Timezone information |
Request example
POST https://workbox.apigw.ntruss.com/workbox/workbox/openapi/v1/organization/company/578c7009-bdad-4493-9835-72302cf988c6/emp/EX00001
POST /openapi/v1/organization/company/578c7009-bdad-4493-9835-72302cf988c6/emp/EX00001
HOST: workbox.apigw.ntruss.com
Content-Type: application/json
x-ncp-apigw-timestamp: 1505290625682
x-ncp-apigw-api-key: DUxjP4HYTP8V7khBkgywdDHQjKuaYWGrppHKpvdv
x-ncp-iam-access-key: D78BB444D6D3C84CA38A
x-ncp-apigw-signature-v1: WTPItrmMIfLUk/UyUIyoQbA/z5hq9o3G8eQMolUzTEo=
{
"deptExternalKey": "00002",
"name": "홍길동",
"i18nNames": {
"ko_KR": "홍길동",
"en_US": "gildong"
},
"gradeExternalKey" : "grade001",
"telNo" :"0317841111",
"cphNo" : "01012341234",
"positionExternalKey" : "pos001"
}
Response example
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 12 Sep 2018 10: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
{
"deptExternalKey": "00002",
"name": "홍길동",
"i18nNames": {
"ko_KR": "홍길동",
"en_US": "gildong"
},
"gradeExternalKey" : "grade001",
"telNo" :"0317841111",
"cphNo" : "01012341234",
"positionExternalKey" : "pos001"
}
Delete
Deletes member information.
Request URL
DELETE https://workbox.apigw.ntruss.com/workbox/workbox/openapi/v1/organization/company/{companyId}/user/{externalKey}
Request header
Header | Description |
---|---|
x-ncp-apigw-timestamp | It is the number of milliseconds that have elapsed since January 1, 1970 00:00:00 UTC. If the time difference with the API Gateway server is more than 5 minutes, the request is considered invalid. x-ncp-apigw-timestamp:{Timestamp} |
x-ncp-apigw-api-key | API key issued by API Gatewayx-ncp-apigw-api-key:{API Gateway API Key} |
x-ncp-iam-access-key | Access Key ID issued from the NAVER CLOUD PLATFORM portal. x-ncp-iam-access-key:{Account Access Key} |
x-ncp-apigw-signature-v1 | Signature encrypted with your Access Key ID and Secret Key. x-ncp-apigw-signature-v1:{API Gateway Signature} |
Content-Type | Set the request body content type to application/json.Content-Type: application/json |
Request path parameters
Parameter | Type | Length | Required | Description |
---|---|---|---|---|
companyId | String | 36 | Y | API key (CompanyId). Developers > Basic Settings > API Key |
externalKey | String | 36 | Y | External key for a member |
Response
It returns an HTTP status code in the response body.
HTTP status code | Response message | Description |
---|---|---|
200 | OK | Success |
201 | Created | Resource successfully created. |
400 | Bad Request | Failure (It is usually used to respond to the request format that the server cannot understand.) |
500 | Internal Server Error | General server error. Whereas 4XX error codes represent client-side errors, 5XX error codes represent server-side errors. |
Available language codes
Locale code | Description |
---|---|
ko_KR | Korean |
ja_JP | Japanese |
zh_CN | Simplified Chinese |
zh_TW | Traditional Chinese |
en_US | English |
Timezone codes
timeZone code | Description |
---|---|
Pacific/Midway | GMT-11:00(MidwayIsland, Samoa) |
Pacific/Honolulu | GMT-10:00(Hawaii) |
Pacific/Marquesas | GMT-09:30(Marquesas) |
America/Anchorage | GMT-09:00(Alaska) |
America/Los_Angeles | GMT-08:00(PacificTime) |
America/Denver | GMT-07:00(MountainTime_US/Canada) |
America/Chicago | GMT-06:00(CentralTime_US/Canada) |
America/New_York | GMT-05:00(EasternTime_US/Canada) |
America/Caracas | GMT-04:30(Caracas) |
America/Santiago | GMT-04:00(Santiago) |
America/St_Johns | GMT-03:30(Newfoundland) |
America/Sao_Paulo | GMT-03:00(SaoPaulo) |
America/Noronha | GMT-02:00(Mid-Atlantic) |
Atlantic/Azores | GMT-01:00(Azores) |
Europe/London | GMT+00:00(GreenwichMeanTime_London) |
Europe/Berlin | GMT+01:00(Amsterdam,Berlin, Vienna) |
Europe/Athens | GMT+02:00(Athens, Cairo) |
Asia/Baghdad | GMT+03:00(Moscow, Baghdad) |
Asia/Tehran | GMT+03:30(Tehran) |
Asia/Baku | GMT+04:00(Baku, Muscat) |
Asia/Karachi | GMT+05:00(Karachi) |
Asia/Colombo | GMT+05:30(NewDelhi,Mumbai, Colombo) |
Asia/Katmandu | GMT+05:45(Katmandu) |
Asia/Dhaka | GMT+06:00(Astana, Dhaka) |
Asia/Rangoon | GMT+06:30(Rangoon) |
Asia/Bangkok | GMT+07:00(Bangkok, Hanoi,Jakarta) |
Asia/Shanghai | GMT+08:00(Beijing,Dalian, Singapore, Taiwan) |
Asia/Seoul | GMT+09:00(Seoul) |
Asia/Tokyo | GMT+09:00(Tokyo, Fukuoka) |
Australia/Darwin | GMT+09:30(Darwin,Adelaide) |
Australia/Sydney | GMT+10:00(Guam,Canberra, Sydney) |
Australia/Lord_Howe | GMT+10:30(LordHoweIsland) |
Pacific/Noumea | GMT+11:00(NewCaledonia) |
Pacific/Norfolk | GMT+11:30(NorfolkIsland) |
Pacific/Auckland | GMT+12:00(Auckland,Fiji) |
Was this article helpful?