Organization v1
    • PDF

    Organization v1

    • PDF

    Article Summary

    Description

    Sets department information for your company in WORKPLACE.

    Addition API

    Adds department information.

    Request URL

    POST https://workplace.apigw.ntruss.com/organization/apigw/v1/company/{companyId}/dept/{externalKey}
    

    Request headers

    HeaderDescription
    x-ncp-apigw-timestampShows 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-keyKey issued by APIGW
    x-ncp-apigw-api-key:{API Gateway API Key}
    x-ncp-iam-access-keyThis 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-v1This is the signature encrypted with the Access Key ID value and Secret Key.
    x-ncp-apigw-signature-v1:{API Gateway Signature}
    Content-TypeRequest body content type is specified as application/json
    Content-Type: application/json

    Request path parameters

    ParameterTypeSizeRequiredDescription
    companyIdString36YAPI key (CompanyId) Developers > Basic Settings > API Key
    externalKeyString36YDepartment external key

    Request body parameters

    ParameterTypeSizeRequiredDescription
    nameString100YDepartment Name
    i18nNamesMapNDepartment Name in multiple languages Map<Locale, String> i18nNames
    uprDeptExternalKeyString50YParent department’s external key (enter # only for the top level)
    deptbsExternalKeyString36NDepartment head’s external key
    dispOrdString1YDisplay order of departments

    Request Example

    POST https://workplace.apigw.ntruss.com/organization/apigw/v1/company/578c7009-bdad-4493-9835-72302cf988c6/dept/0000002
    
    POST /organization/apigw/v1/company/578c7009-bdad-4493-9835-72302cf988c6/dept/0000002
    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=
    {
        "dispOrd": 1,
        "uprDeptExternalKey" : "00001",
        "deptbsExternalKey" : "EX00001",
        "name": "운영관리팀",
        "i18nNames": {
                "ko_KR": "운영관리팀",
                "en_US": "Operation Management Team"
            }
    
    }
    

    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
    
    {
        "dispOrd": 1,
        "uprDeptExternalKey" : "00001",
        "deptbsExternalKey" : "EX00001",
        "name": "운영관리팀",
        "i18nNames": {
                "ko_KR": "운영관리팀",
                "en_US": "Operation Management Team"
            }
    
    }
    

    Edit API

    Edits department information.

    Request URL

    PUT https://workplace.apigw.ntruss.com/organization/apigw/v1/company/{companyId}/dept/{externalKey}
    

    Request headers

    HeaderDescription
    x-ncp-apigw-timestampShows 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-keyKey issued by APIGW
    x-ncp-apigw-api-key:{API Gateway API Key}
    x-ncp-iam-access-keyThis 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-v1This is the signature encrypted with the Access Key ID value and Secret Key.
    x-ncp-apigw-signature-v1:{API Gateway Signature}
    Content-TypeRequest body content type is specified as application/json
    Content-Type: application/json

    Request path parameters

    ParameterTypeSizeRequiredDescription
    companyIdString36YAPI key (CompanyId) Developers > Basic Settings > API Key
    externalKeyString36Y부서 외부키

    Request body parameters

    ParameterTypeSizeRequiredDescription
    nameString100YDepartment Name
    i18nNamesMapNDepartment Name in multiple languagesMap<Locale, String> i18nNames
    uprDeptExternalKeyString50YParent department’s external key (enter # only for the top level)
    deptbsExternalKeyString36NDepartment head’s external key
    dispOrdString1YDisplay order of departments

    Request Example

    POST https://workplace.apigw.ntruss.com/organization/apigw/v1/company/578c7009-bdad-4493-9835-72302cf988c6/dept/0000002
    
    POST /organization/apigw/v1/company/578c7009-bdad-4493-9835-72302cf988c6/dept/0000002
    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=
    {
        "dispOrd": 1,
        "uprDeptExternalKey" : "00001",
        "deptbsExternalKey" : "EX00001",
        "name": "운영관리팀",
        "i18nNames": {
                "ko_KR": "운영관리팀",
                "en_US": "Operation Management Team"
            }
    
    }
    

    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
    
    {
        "dispOrd": 1,
        "uprDeptExternalKey" : "00001",
        "deptbsExternalKey" : "EX00001",
        "name": "운영관리팀",
        "i18nNames": {
                "ko_KR": "운영관리팀",
                "en_US": "Operation Management Team"
            }
    
    }
    

    Delete API

    Deletes department information.

    Request URL

    DELETE https://workplace.apigw.ntruss.com/organization/apigw/v1/company/{companyId}/dept/{externalKey}
    

    Request headers

    HeaderDescription
    x-ncp-apigw-timestampShows 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-keyKey issued by APIGW
    x-ncp-apigw-api-key:{API Gateway API Key}
    x-ncp-iam-access-keyThis 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-v1This is the signature encrypted with the Access Key ID value and Secret Key.
    x-ncp-apigw-signature-v1:{API Gateway Signature}
    Content-TypeRequest body content type is specified as application/json
    Content-Type: application/json

    Request path parameters

    ParameterTypeSizeRequiredDescription
    companyIdString36YAPI key (CompanyId) Developers > Basic Settings > API Key
    externalKeyString36YDepartment external key

    Response

    Returned as HTTP status code in the response body.

    HTTP status codeResponse messageDescription
    200OKSuccess
    201CreatedResource successfully created
    400Bad RequestFailure (usually used to respond to a request format that the server cannot understand.)
    500Internal Server ErrorGeneral server error. Where 4xx error codes represent client-side errors,
    5xx error codes represent server-side errors.

    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.