Employee v2
    • PDF

    Employee v2

    • PDF

    Article Summary

    Description

    API to set the employee information for your company in WORKPLACE.

    Addition API

    Adds employee information.

    Request URL

    POST https://workplace.apigw.ntruss.com/organization/apigw/v2/company/{companyId}/employee/{externalKey}
    

    Request header

    HeaderDescription
    x-ncp-apigw-timestamp* This is the number of milliseconds that have elapsed since January 1, 1970 00:00:00 UTC.
    * If the time difference compared to the API Gateway server is more than 5 minutes, then the request is considered invalid.
    x-ncp-iam-access-key* Access Key ID issued on NAVER Cloud Platform portal or by Sub Account
    x-ncp-apigw-signature-v2* A signature that encrypts the body of the example above with Secret Key mapped to the access key ID
    * HmacSHA256 is used as the HMAC encryption algorithm

    Request path parameters

    ParameterTypeCapacityRequirement statusDescription
    companyIdString36YConnection key(CompanyId) Developers > Default settings > Connection key
    externalKeyString36YEmployee external key

    Request body parameters

    ParameterTypeCapacityRequirement statusDescription
    loginIdString100YLogin ID
    emailAddressString100YEmail
    employYmdString10YDate of employment(yyyy-MM-dd)
    telephoneNoString30NTelephone number
    cellphoneNoString100NMobile phone number
    birthYmdString30NDate of birth(yyyy-MM-dd)
    genderCdString30NGender(MALE, FEMALE)
    empNickString100NNickname Only the following characters are allowed: ! @ & ( ) - _ + [ ] { } , .
    localeTypeCdStringNLocale information
    tmznTypeCdStringNTime zone information
    zipCodeString10NZip code
    addressString100NAddress
    addressDetailString100NDetailed address
    nameString100YName
    i18nNamesMapNLocalized name Map<Locale, String> i18nNames
    deptExternalKeyString100YDepartment external key
    concurrentDeptExternalKeysarrayYConcurrent department external key
    empTypeExternalKeyString100YEmployment type external key
    gradeCdExternalKeyString100NJob grade external key
    jobCdExternalKeyString100NPosition external key
    passwordSettingTypeString10YPasswords setting type(ADMIN/USER)
    initializePasswordString100YADMIN: initial password/USER: email address to receive the invitation email

    Request example

    POST https://workplace.apigw.ntruss.com/organization/apigw/v2/company/c1798784-9a47-4751-ab9f-b9629825ab93/employee/apiTestExternal1
    
    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-v2: WTPItrmMIfLUk/UyUIyoQbA/z5hq9o3G8eQMolUzTEo=
    
    {
            "employYmd" : "2021-03-01",
            "loginId" : "gildong@sample.co.kr",
            "emailAddress" : "gildong@test.com",
            "telephoneNo" : "0100000000",
            "cellphoneNo" : "0310000000",
            "birthYmd" : "1988-01-01",
            "genderCd" : "MALE",
            "zipCode" : "123456",
            "address" : "Jeongja-dong, Bundang-gu, Seongnam-si, Gyeonggi-do",
            "addressDetail" : "1-dong 1-ho, Green apartment",
            "name": "Gildong Hong",
            "i18nNames": {
                "ko_KR": "Gildong Hong",
                "en_US": "gildong"
            },
            "deptExternalKey" : "apitestdept1",
            "concurrentDeptExternalKeys" : ["apitestdept2", "apitestdept3"],
            "empTypeExternalKey" : "apitestempType1",
            "gradeCdExternalKey" : "apitestgrade5",
            "jobCdExternalKey" : "apitestjob1",
            "passwordSettingType" : "ADMIN",
            "initializePassword" : "password"
    }
    

    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
    
    {
            "employYmd" : "2021-03-01",
            "loginId" : "gildong@sample.co.kr",
            "emailAddress" : "gildong@test.com",
            "telephoneNo" : "0100000000",
            "cellphoneNo" : "0310000000",
            "birthYmd" : "1988-01-01",
            "genderCd" : "MALE",
            "zipCode" : "123456",
            "address" : "Jeongja-dong, Bundang-gu, Seongnam-si, Gyeonggi-do",
            "addressDetail" : "1-dong 1-ho, Green apartment",
            "name": "Gildong Hong",
            "i18nNames": {
                "ko_KR": "Gildong Hong",
                "en_US": "gildong"
            },
            "deptExternalKey" : "apitestdept1",
            "concurrentDeptExternalKeys" : ["apitestdept2", "apitestdept3"],
            "empTypeExternalKey" : "apitestempType1",
            "gradeCdExternalKey" : "apitestgrade5",
            "jobCdExternalKey" : "apitestjob1",
            "passwordSettingType" : "ADMIN",
            "initializePassword" : "password"
    }
    

    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/v2/company/{companyId}/employee/{externalKey}
    

    Request header

    HeaderDescription
    x-ncp-apigw-timestamp* This is the number of milliseconds that have elapsed since January 1, 1970 00:00:00 UTC.
    * If the time difference compared to the API Gateway server is more than 5 minutes, then the request is considered invalid.
    x-ncp-iam-access-key* Access Key ID issued on NAVER Cloud Platform portal or by Sub Account
    x-ncp-apigw-signature-v2* A signature that encrypts the body of the example above with Secret Key mapped to the access key ID
    * HmacSHA256 is used as the HMAC encryption algorithm

    Request path parameters

    ParameterTypeCapacityRequirement statusDescription
    companyIdString36YConnection key(CompanyId) Developers > Default settings > Connection key
    externalKeyString36YEmployee external key

    Request body parameters

    ParameterTypeCapacityRequirement statusDescription
    loginIdString100YLogin ID
    emailAddressString100YEmail
    employYmdString10YDate of employment(yyyy-MM-dd)
    telephoneNoString30NTelephone number
    cellphoneNoString100NMobile phone number
    birthYmdString30NDate of birth(yyyy-MM-dd)
    genderCdString30NGender(MALE, FEMALE)
    empNickString100NNicknameOnly the following characters are allowed: ! @ & ( ) - _ + [ ] { } , .
    localeTypeCdStringNLocale information
    tmznTypeCdStringNTime zone information
    zipCodeString10NZip code
    addressString100NAddress
    addressDetailString100NDetailed address
    nameString100YName
    i18nNamesMapNLocalized name Map<Locale, String> i18nNames
    deptExternalKeyString100YDepartment external key
    concurrentDeptExternalKeysarrayYConcurrent department external key
    empTypeExternalKeyString100YEmployment type external key
    gradeCdExternalKeyString100NJob grade external key
    jobCdExternalKeyString100NPosition external key
    passwordSettingTypeString10YPasswords setting type (ADMIN/USER)
    initializePasswordString100YADMIN: initial password/USER: email address to receive the invitation email

    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=
    
    {
            "employYmd" : "2021-03-01",
            "loginId" : "gildong@sample.co.kr",
            "emailAddress" : "gildong@test.com",
            "telephoneNo" : "0100000000",
            "cellphoneNo" : "0310000000",
            "birthYmd" : "1988-01-01",
            "genderCd" : "MALE",
            "zipCode" : "123456",
            "address" : "Jeongja-dong, Bundang-gu, Seongnam-si, Gyeonggi-do",
            "addressDetail" : "1-dong 1-ho, Green apartment",
            "name": "Gildong Hong",
            "i18nNames": {
                "ko_KR": "Gildong Hong",
                "en_US": "gildong"
            },
            "deptExternalKey" : "apitestdept1",
            "concurrentDeptExternalKeys" : ["apitestdept2", "apitestdept3"],
            "empTypeExternalKey" : "apitestempType1",
            "gradeCdExternalKey" : "apitestgrade5",
            "jobCdExternalKey" : "apitestjob1",
            "passwordSettingType" : "ADMIN",
            "initializePassword" : "password"
     }
    

    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
    
    {
            "employYmd" : "2021-03-01",
            "loginId" : "gildong@sample.co.kr",
            "emailAddress" : "gildong@test.com",
            "telephoneNo" : "0100000000",
            "cellphoneNo" : "0310000000",
            "birthYmd" : "1988-01-01",
            "genderCd" : "MALE",
            "zipCode" : "123456",
            "address" : "Jeongja-dong, Bundang-gu, Seongnam-si, Gyeonggi-do",
            "addressDetail" : "1-dong 1-ho, Green apartment",
            "name": "Gildong Hong",
            "i18nNames": {
                "ko_KR": "Gildong Hong",
                "en_US": "gildong"
            },
            "deptExternalKey" : "apitestdept1",
            "concurrentDeptExternalKeys" : ["apitestdept2", "apitestdept3"],
            "empTypeExternalKey" : "apitestempType1",
            "gradeCdExternalKey" : "apitestgrade5",
            "jobCdExternalKey" : "apitestjob1",
            "passwordSettingType" : "ADMIN",
            "initializePassword" : "password"
    }
    

    Delete API

    Deletes employee information.

    Request URL

    DELETE https://workplace.apigw.ntruss.com/organization/apigw/v2/company/{companyId}/employee/{externalKey}
    

    Request header

    HeaderDescription
    x-ncp-apigw-timestamp* This is the number of milliseconds that have elapsed since January 1, 1970 00:00:00 UTC.
    * If the time difference compared to the API Gateway server is more than 5 minutes, then the request is considered invalid.
    x-ncp-iam-access-key* Access Key ID issued on NAVER Cloud Platform portal or by Sub Account
    x-ncp-apigw-signature-v2* A signature that encrypts the body of the example above with Secret Key mapped to the access key ID
    * HmacSHA256 is used as the HMAC encryption algorithm

    Request path parameters

    ParameterTypeCapacityRequirement statusDescription
    companyIdString36YConnection key (CompanyId) Developers > Default settings > Connection key
    externalKeyString36YEmployee external key Developers > Default settings > Connect Organization > Employee
    LoginId
    empId

    Search employee API

    Searches employees.

    Request URL

    GET https://workplace.apigw.ntruss.com/organization/apigw/v2/company/{companyId}/employee/{externalKey}
    
    

    Request header

    HeaderDescription
    x-ncp-apigw-timestamp* This is the number of milliseconds that have elapsed since January 1, 1970 00:00:00 UTC.
    * If the time difference compared to the API Gateway server is more than 5 minutes, then the request is considered invalid.
    x-ncp-iam-access-key* Access Key ID issued on NAVER Cloud Platform portal or by Sub Account
    x-ncp-apigw-signature-v2* A signature that encrypts the body of the example above with Secret Key mapped to the access key ID
    * HmacSHA256 is used as the HMAC encryption algorithm

    Request path parameters

    ParameterTypeCapacityRequirement statusDescription
    companyIdString36YConnection key(CompanyId) Developers > Default settings > Connection key
    externalKeyString36YEmployee external key

    Request example

    GET https://workplace.apigw.ntruss.com/organization/apigw/v2/company/c1798784-9a47-4751-ab9f-b9629825ab93/employee/apiTestExternal1
    
    GET /organization/apigw/v2/company/c1798784-9a47-4751-ab9f-b9629825ab93/employee/apiTestExternal1
    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-v2: WTPItrmMIfLUk/UyUIyoQbA/z5hq9o3G8eQMolUzTEo=
    

    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
    {
                "tenantId": "c1798784-9a47-4751-ab9f-b9629825ab93",
                "companyId": "c1798784-9a47-4751-ab9f-b9629825ab93",
                "externalKey": "apiTestExternal1",
                 "name": "Gildong Hong",
                 "i18nNames": {
                      "ko_KR": "Gildong Hong",
                      "en_US": "gildong"
                 },
                "employYmd": "2021-03-01",
                "loginId" : "gildong@sample.co.kr",
                "emailAddress" : "gildong@test.com",
                "telephoneNo" : "0100000000",
                "cellphoneNo" : "0310000000",
                "empNo": null,
                "nationCd": null,
                "residentRegistrationNumber": null,
                "genderCd": "MALE",
                "birthYmd": "1989-01-01",
                "zipCode" : "123456",
                "address" : "Jeongja-dong, Bundang-gu, Seongnam-si, Gyeonggi-do",
                "addressDetail" : "1-dong 1-ho, Green apartment",
                "deptExternalKey": "apitestdept1",
                "gradeCdExternalKey": "apitestgrade5",
                "jobCdExternalKey": "apitestjob1",
                "empTypeExternalKey": "apitestempType1"
    }
    

    Search employee list API

    Searches employee list.

    Request URL

    GET https://workplace.apigw.ntruss.com/organization/apigw/v2/company/{companyId}/employee
    

    Request header

    HeaderDescription
    x-ncp-apigw-timestamp* This is the number of milliseconds that have elapsed since January 1, 1970 00:00:00 UTC.
    * If the time difference compared to the API Gateway server is more than 5 minutes, then the request is considered invalid.
    x-ncp-iam-access-key* Access Key ID issued on NAVER Cloud Platform portal or by Sub Account
    x-ncp-apigw-signature-v2* A signature that encrypts the body of the example above with Secret Key mapped to the access key ID
    * HmacSHA256 is used as the HMAC encryption algorithm

    Request path parameters

    ParameterTypeCapacityRequirement statusDescription
    companyIdString36YConnection key(CompanyId) Developers > Default settings > Connection key

    Request parameters

    ParameterTypeCapacityRequirement statusDescription
    offsetlongNDisplay offset rows first
    limitlongNDisplay as many as the number of limits

    Request example

    GET https://workplace.apigw.ntruss.com/organization/apigw/v2/company/c1798784-9a47-4751-ab9f-b9629825ab93/employee?offset=0&limit=10
    
    GET 
    organization/apigw/v2/company/c1798784-9a47-4751-ab9f-b9629825ab93/employee?offset=0&limit=10
    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-v2: WTPItrmMIfLUk/UyUIyoQbA/z5hq9o3G8eQMolUzTEo=
    

    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
    
    {
        "elements": [
            {
                "tenantId": "c1798784-9a47-4751-ab9f-b9629825ab93",
                "companyId": "c1798784-9a47-4751-ab9f-b9629825ab93",
                "externalKey": "apiTestExternal1",
                 "name": "Gildong Hong",
                 "i18nNames": {
                      "ko_KR": "Gildong Hong",
                      "en_US": "gildong"
                 },
                "employYmd": "2021-03-01",
                "loginId" : "gildong@sample.co.kr",
                "emailAddress" : "gildong@test.com",
                "telephoneNo" : "0100000000",
                "cellphoneNo" : "0310000000",
                "empNo": null,
                "nationCd": null,
                "residentRegistrationNumber": null,
                "genderCd": "MALE",
                "birthYmd": "1989-01-01",
                "zipCode" : "123456",
                "address" : "Jeongja-dong, Bundang-gu, Seongnam-si, Gyeonggi-do",
                "addressDetail" : "1-dong 1-ho, Green apartment",
                "deptExternalKey": "apitestdept1",
                "gradeCdExternalKey": "apitestgrade5",
                "jobCdExternalKey": "apitestjob1",
                "empTypeExternalKey": "apitestempType1"
            },
            {
                "tenantId": "c1798784-9a47-4751-ab9f-b9629825ab93",
                "companyId": "c1798784-9a47-4751-ab9f-b9629825ab93",
                "externalKey": "apiTestExternal2",
                "name": "Gildongi",
                "i18nNames": {},
                "employYmd": "2021-03-01",
                "loginId" : "gildong1@sample.co.kr",
                "emailAddress" : "gildong1@test.com",
                "telephoneNo" : "0100000000",
                "cellphoneNo" : "0310000000",
                "empNo": null,
                "nationCd": null,
                "residentRegistrationNumber": null,
                "genderCd": "MALE",
                "birthYmd": "1986-11-01",
                "zipCode": "",
                "address": null,
                "addressDetail": null,
                "deptExternalKey": "apitestdept1",
                "gradeCdExternalKey": "apitestgrade5",
                "jobCdExternalKey": "apitestjob1",
                "empTypeExternalKey": "apitestempType1"
            }
        ],
        "totalCount": 2
    }
    

    Response

    Returned as an HTTP status code in the response body.

    HTTP status codeResponse messageDescription
    200OKGeneral request made successfully
    201CreatedResponse code related to the success of resource creation
    400Bad RequestUsed for failed general request
    500Internal Server ErrorGeneral server error. While 4xx error codes represent client-side errors,
    5xx error codes represent server-side errors.

    Response example

    {
        "status": 400,
        "code": -4001,
        "errors": [],
        "message": "This is a duplicate login ID"
    }
    

    Usable language codes

    Locale codeDescription
    ko_KRKorean
    ja_JPJapanese
    zh_CNChinese (Simplified)
    zh_TWChinese (Traditional)
    en_USEnglish

    Time zone codes

    Time zone codeDescription
    Pacific/MidwayGMT-11:00(MidwayIsland, Samoa)
    Pacific/HonoluluGMT-10:00(Hawaii)
    Pacific/MarquesasGMT-09:30(Marquesas)
    America/AnchorageGMT-09:00(Alaska)
    America/Los_AngelesGMT-08:00(PacificTime)
    America/DenverGMT-07:00(MountainTime_US/Canada)
    America/ChicagoGMT-06:00(CentralTime_US/Canada)
    America/New_YorkGMT-05:00(EasternTime_US/Canada)
    America/CaracasGMT-04:30(Caracas)
    America/SantiagoGMT-04:00(Santiago)
    America/St_JohnsGMT-03:30(Newfoundland)
    America/Sao_PauloGMT-03:00(SaoPaulo)
    America/NoronhaGMT-02:00(Mid-Atlantic)
    Atlantic/AzoresGMT-01:00(Azores)
    Europe/LondonGMT+00:00(GreenwichMeanTime_London)
    Europe/BerlinGMT+01:00(Amsterdam,Berlin, Vienna)
    Europe/AthensGMT+02:00(Athens, Cairo)
    Asia/BaghdadGMT+03:00(Moscow, Baghdad)
    Asia/TehranGMT+03:30(Tehran)
    Asia/BakuGMT+04:00(Baku, Muscat)
    Asia/KarachiGMT+05:00(Karachi)
    Asia/ColomboGMT+05:30(NewDelhi,Mumbai, Colombo)
    Asia/KatmanduGMT+05:45(Katmandu)
    Asia/DhakaGMT+06:00(Astana, Dhaka)
    Asia/RangoonGMT+06:30(Rangoon)
    Asia/BangkokGMT+07:00(Bangkok, Hanoi,Jakarta)
    Asia/ShanghaiGMT+08:00(Beijing,Dalian, Singapore, Taiwan)
    Asia/SeoulGMT+09:00(Seoul)
    Asia/TokyoGMT+09:00(Tokyo, Fukuoka)
    Australia/DarwinGMT+09:30(Darwin,Adelaide)
    Australia/SydneyGMT+10:00(Guam,Canberra, Sydney)
    Australia/Lord_HoweGMT+10:30(LordHoweIsland)
    Pacific/NoumeaGMT+11:00(NewCaledonia)
    Pacific/NorfolkGMT+11:30(NorfolkIsland)
    Pacific/AucklandGMT+12:00(Auckland,Fiji)

    Was this article helpful?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.