Editing department
    • PDF

    Editing department

    • PDF

    Article summary

    Available in Classic and VPC

    It is an API to edit departments of the Media Connect Center.

    Requests

    PUT https://ncloudmcc.apigw.ntruss.co/ncloudmcc/v1/companies/{companyId}/depts/{externalKey}
    

    Request headers

    ItemRequiredDescription
    x-ncp-apigw-timestampYTime elapsed since January 1, 1970, 00:00:00 UTC in milliseconds. The request is considered invalid if the time difference from the API Gateway server is 5 minutes or longer
    x-ncp-apigw-timestamp:{Timestamp}
    x-ncp-iam-access-keyYValue of access key ID issued from NAVER Cloud Platform portal
    x-ncp-iam-access-key:{Sub Account Access Key}
    x-ncp-apigw-signature-v2YSignature encrypted with the access key ID value and secret key
    x-ncp-apigw-signature-v2:{API Gateway Signature}
    x-ncp-region_codeNRegion code (KR)
    x-ncp-region_code:KR
    Content-TypeYSpecifies the request body content type as application/json
    Content-Type: application/json

    Request path parameters

    ParametersTypeSizeRequiredDescription
    companyIdString36YIntegration key (CompanyId)
    Developers > Basic settings > Integration key
    externalKeyString36YExternal key of department

    Request body parameters

    ParametersTypeSizeRequiredDescription
    nameString100YDepartment name
    i18nNamesMapNMultilingual department name
    Map<Locale, String> i18nNames
    sortOrdNumber1YOrder of department to be exposed
    uprDeptExternalKeyString50NExternal key of the upper department; the highest default department if not specified

    Request examples

    PUT /ncloudmcc/v1/companies/48128f23-e29b-496e-aa04-1f741fed86bc/depts/dept01 
    Host: ncloudmcc.apigw.ntruss.com
    Content-Length: 28
    Content-Type: application/json
    x-ncp-apigw-signature-v2: ZYPQDU/KSzfXYFubgoLomAwAuOjLV4AEzE3AQuXAA0Y=
    x-ncp-apigw-timestamp: 1700454086935
    x-ncp-iam-access-key: HrR0s91elfiXEeTSZcwj
    x-ncp-region_code: KR
    
    {
        "name":"Sales",
        "i18nNames":
        {
            "ko_KR": "영업",
            "en_US": "Sales"
        },
        "uprDeptExternalKey": "dept00",
        "sortOrd":0
    }
    

    Responses

    Response examples

    HTTP/1.1 200 OK
    Content-Length: 0
    Connection: keep-alive
    Date: Mon, 20 Nov 2023 04:13:38 GMT
    Server: nginx
    x-ncp-apigw-response-origin: ENDPOINT
    x-ncp-trace-id: 6aeb16oqj2e353gp9p6dh68d1m
    

    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.