Set additional properties by employee
    • PDF

    Set additional properties by employee

    • PDF

    Article Summary

    Description

    Sets additional properties for an employee.

    Add additional properties

    Adds additional properties of an employee.

    Request URL

    POST https://workplace.apigw.ntruss.com/organization/apigw/v1/company/{companyId}/addattrdata/employee/{externalKey}/attrkey/{attrExternalKey}
    

    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

    ParameterTypeLengthRequiredDescription
    companyIdString36YAPI key (CompanyId). Developers > Basic Settings > API Key
    externalKeyString36YEmployee’s external key
    attrExternalKeyString36YAdditional property’s external key

    Request body parameters

    ParameterTypeRequiredDescription
    fieldDataStringNAdditional property data. Pass the data through itemExternalKey if it is selective input type.

    Request example

    POST https://workplace.apigw.ntruss.com/organization/apigw/v1/company/578c7009-bdad-4493-9835-72302cf988c6/addattrdata/employee/23f24be1-e100-4d9f-a242-ef0bd4ac8135/attrkey/e95b455e-4dee-4a74-ad3d-192d203e7650
    
    POST /organization/apigw/v1/company/578c7009-bdad-4493-9835-72302cf988c6/addattrdata/employee/23f24be1-e100-4d9f-a242-ef0bd4ac8135/attrkey/e95b455e-4dee-4a74-ad3d-192d203e7650
    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=
    {
       "fieldData" : "7df0ef37-a451-49e7-8886-06a2e0e1d3a7"
    }
    
    or
    {
       "fieldData" : "test"
    }
    

    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
    
    {
       "fieldData" : "7df0ef37-a451-49e7-8886-06a2e0e1d3a7"
    }
    
    or
    {
       "fieldData" : "test"
    }
    

    Edit additional properties

    Edits additional properties of an employee.

    Request URL

    PUT https://workplace.apigw.ntruss.com/organization/apigw/v1/company/addattrdata/employee/{externalKey}/attrkey/{attrExternalKey}
    

    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

    ParameterTypeLengthRequiredDescription
    companyIdString36YAPI key (CompanyId). Developers > Basic Settings > API Key
    externalKeyString36YEmployee’s external key
    attrExternalKeyString36YAdditional property’s external key

    Request body parameters

    ParameterTypeRequiredDescription
    fieldDataStringNAdditional property data. Pass the data through itemExternalKey if it is selective input type.

    Request example

    POST https://workplace.apigw.ntruss.com/organization/apigw/v1/company/578c7009-bdad-4493-9835-72302cf988c6/addattrdata/employee/23f24be1-e100-4d9f-a242-ef0bd4ac8135/attrkey/e95b455e-4dee-4a74-ad3d-192d203e7650
    
    POST /organization/apigw/v1/company/578c7009-bdad-4493-9835-72302cf988c6/addattrdata/employee/23f24be1-e100-4d9f-a242-ef0bd4ac8135/attrkey/e95b455e-4dee-4a74-ad3d-192d203e7650
    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=
    {
       "fieldData" : "7df0ef37-a451-49e7-8886-06a2e0e1d3a7"
    }
    
    or
    {
       "fieldData" : "test"
    }
    

    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
    
    {
       "fieldData" : "7df0ef37-a451-49e7-8886-06a2e0e1d3a7"
    }
    
    or
    {
       "fieldData" : "test"
    }
    

    Delete additional properties

    Deletes additional properties of an employee.

    Request URL

    DELETE https://workplace.apigw.ntruss.com/organization/apigw/v1/company/addattrdata/employee/{externalKey}/attrkey/{attrExternalKey}
    

    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

    ParameterTypeLengthRequiredDescription
    companyIdString36YAPI key (CompanyId). Developers > Basic Settings > API Key
    externalKeyString36YEmployee’s external key
    attrExternalKeyString36YAdditional property’s external key

    Response

    It returns an HTTP status code in the response body.

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

    Was this article helpful?

    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.