Employee v1
- Print
- PDF
Employee v1
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
Description
Sets employee information for your company in WORKPLACE.
Addition API
Adds employee information.
Request URL
POST https://workplace.apigw.ntruss.com/organization/apigw/v1/company/{companyId}/emp/{externalKey}
Request headers
Header | Description |
---|---|
x-ncp-apigw-timestamp | Shows the time elapsed since January 1, 1970 00:00:00 UTC. If the time differs from that of the API Gateway server by 5 minutes or more, the request is considered invalid. x-ncp-apigw-timestamp:{Timestamp} |
x-ncp-apigw-api-key | Key issued by APIGWx-ncp-apigw-api-key:{API Gateway API Key} |
x-ncp-iam-access-key | This is the Access Key ID value issued by the NAVER CLOUD PLATFORM portal.x-ncp-iam-access-key:{Account Access Key} |
x-ncp-apigw-signature-v1 | This is the signature encrypted with the Access Key ID value and Secret Key.x-ncp-apigw-signature-v1:{API Gateway Signature} |
Content-Type | Request body content type is specified as application/jsonContent-Type: application/json |
Request path parameters
Parameter | Type | Size | Required | Description |
---|---|---|---|---|
companyId | String | 36 | Y | API key CompanyId (Developers > Basic Settings > API Key) |
externalKey | String | 36 | Y | Employee external key |
Request body parameters
Parameter | Type | Size | Required | Description |
---|---|---|---|---|
name | String | 100 | Y | Name |
i18nNames | Map | N | Name in multiple languages Map<Locale, String> i18nNames | |
deptExternalKey | String | 36 | N | Department external key |
emailAddr | String | 100 | Y | Business email address (login ID) |
extEmailAddr | String | 30 | N | External email address |
telNo | String | 30 | N | Phone number |
cphNo | String | 100 | N | Cellphone number |
localeTypeCd | String | N | Locale information | |
tmznTypeCd | String | N | Timezone information | |
gradeExternalKey | String | 100 | N | Job grade external key |
jobExternalKey | String | 100 | N | Position external key |
empNick | String | 100 | N | Nickname Only the following characters are allowed:! @ & ( ) - _ + [ ] { } , . |
empNo | String | 30 | N | Employee number |
employYmd | Date | 10 | N | Date hired (YYYY-MM-DD) |
Request Example
POST https://workplace.apigw.ntruss.com/organization/apigw/v1/company/578c7009-bdad-4493-9835-72302cf988c6/emp/EX00001
POST /organization/apigw/v1/company/578c7009-bdad-4493-9835-72302cf988c6/emp/EX00001
HOST: workplace.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",
"extEmailAddr": "gildong@test.com",
"name": "홍길동",
"i18nNames": {
"ko_KR": "홍길동",
"en_US": "gildong"
},
"empNick" : "홍길동전",
"jobExternalKey" : "job001",
"telNo" :"0317841111",
"cphNo" : "01012341234",
"localeTypeCd":"ko_KR",
"tmznTypeCd" : "Asia/Seoul",
"gradeExternalKey" : "grade001",
"empNo" : "T00001"
}
Response Example
HTTP/1.1 201 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
{
"deptExternalKey": "00002",
"emailAddr": "gildong@sample.co.kr",
"extEmailAddr": "gildong@test.com",
"name": "홍길동",
"i18nNames": {
"ko_KR": "홍길동",
"en_US": "gildong"
},
"empNick" : "홍길동전",
"jobExternalKey" : "job001",
"telNo" :"0317841111",
"cphNo" : "01012341234",
"localeTypeCd":"ko_KR",
"tmznTypeCd" : "Asia/Seoul",
"gradeExternalKey" : "grade001",
"empNo" : "T00001"
}
Edit API
Edits employee information.
You should pass all the information, including information that is unchanged. (Even if you only need to edit certain fields, all information must be resubmitted.)
Request URL
PUT https://workplace.apigw.ntruss.com/organization/apigw/v1/company/{companyId}/emp/{externalKey}
Request headers
Header | Description |
---|---|
x-ncp-apigw-timestamp | Shows the time elapsed since January 1, 1970 00:00:00 UTC. If the time differs from that of the API Gateway server by 5 minutes or more, the request is considered invalid. x-ncp-apigw-timestamp:{Timestamp} |
x-ncp-apigw-api-key | Key issued by APIGWx-ncp-apigw-api-key:{API Gateway API Key} |
x-ncp-iam-access-key | This is the Access Key ID value issued by the NAVER CLOUD PLATFORM portal.x-ncp-iam-access-key:{Account Access Key} |
x-ncp-apigw-signature-v1 | This is the signature encrypted with the Access Key ID value and Secret Key.x-ncp-apigw-signature-v1:{API Gateway Signature} |
Content-Type | Request body content type is specified as application/jsonContent-Type: application/json |
Request path parameters
Parameter | Type | Size | Required | Description |
---|---|---|---|---|
companyId | String | 36 | Y | API key CompanyId (Developers > Basic Settings > API Key) |
externalKey | String | 36 | Y | Employee external key |
Request body parameters
Parameter | Type | Size | Required | Description |
---|---|---|---|---|
name | String | 100 | Y | Name |
i18nNames | Map | N | Name in multiple languages Map<Locale, String> i18nNames | |
deptExternalKey | String | 36 | N | Department external key |
extEmailAddr | String | 30 | Y | External email address |
telNo | String | 30 | N | Phone number |
cphNo | String | 100 | N | Cellphone number |
faxNo | String | 30 | N | Fax number |
gradeExternalKey | String | 100 | N | Job grade external key |
jobExternalKey | String | 100 | N | Position external key |
empNick | String | 100 | N | Nickname Only the following characters are allowed:! @ & ( ) - _ + [ ] { } , . |
empNo | String | 30 | N | Employee number |
employYmd | Date | 10 | N | Date hired (YYYY-MM-DD) |
Request Example
POST https://workplace.apigw.ntruss.com/organization/apigw/v1/company/578c7009-bdad-4493-9835-72302cf988c6/emp/EX00001
POST /organization/apigw/v1/company/578c7009-bdad-4493-9835-72302cf988c6/emp/EX00001
HOST: workplace.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",
"extEmailAddr": "gildong@test.com",
"name": "홍길동",
"i18nNames": {
"ko_KR": "홍길동",
"en_US": "gildong"
},
"empNick" : "홍길동전",
"jobExternalKey" : "job001",
"telNo" :"0317841111",
"cphNo" : "01012341234",
"gradeExternalKey" : "grade001",
"empNo" : "T00001"
}
Response Example
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
{
"deptExternalKey": "00002",
"extEmailAddr": "gildong@test.com",
"name": "홍길동",
"i18nNames": {
"ko_KR": "홍길동",
"en_US": "gildong"
},
"empNick" : "홍길동전",
"jobExternalKey" : "job001",
"telNo" :"0317841111",
"cphNo" : "01012341234",
"gradeExternalKey" : "grade001",
"empNo" : "T00001"
}
Delete API
Deletes employee information.
Request URL
DELETE https://workplace.apigw.ntruss.com/organization/apigw/v1/company/{companyId}/emp/{externalKey}
Request headers
Header | Description |
---|---|
x-ncp-apigw-timestamp | Shows the time elapsed since January 1, 1970 00:00:00 UTC. If the time differs from that of the API Gateway server by 5 minutes or more, the request is considered invalid. x-ncp-apigw-timestamp:{Timestamp} |
x-ncp-apigw-api-key | Key issued by APIGWx-ncp-apigw-api-key:{API Gateway API Key} |
x-ncp-iam-access-key | This is the Access Key ID value issued by the NAVER CLOUD PLATFORM portal.x-ncp-iam-access-key:{Account Access Key} |
x-ncp-apigw-signature-v1 | This is the signature encrypted with the Access Key ID value and Secret Key.x-ncp-apigw-signature-v1:{API Gateway Signature} |
Content-Type | Request body content type is specified as application/jsonContent-Type: application/json |
Request path parameters
Parameter | Type | Size | Required | Description |
---|---|---|---|---|
companyId | String | 36 | Y | API key CompanyId (Developers > Basic Settings > API Key) |
externalKey | String | 36 | Y | Employee external key |
Response
Returned as 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 (usually used to respond to a request format that the server cannot understand.) |
500 | Internal Server Error | General server error. Where 4xx error codes represent client-side errors, 5xx error codes represent server-side errors. |
Usable language codes
locale code | Description |
---|---|
ko_KR | Korean |
ja_JP | Japanese |
zh_CN | Chinese (Simplified) |
zh_TW | Chinese (Traditional) |
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?