Attachment uploads
    • PDF

    Attachment uploads

    • PDF

    Article Summary

    Description

    Uploads attachments

    Request headers

    HeaderDescription
    x-ncp-apigw-timestamp- It indicates the time elapsed in milliseconds since January 1, 1970, 00:00:00 UTC
    - Request is considered invalid if the time difference with the API Gateway server is greater than 5 minutes
    x-ncp-iam-access-key- Access key ID issued from the NAVER Cloud Platform portal or a sub-account
    x-ncp-apigw-signature-v2- Signature of the body in the above example encrypted with secret key mapped to access key ID
    - HMAC encryption algorithm is HMAC-SHA256

    Attachment upload API

    Uploads attachments individually (Maximum size: 100 MB)

    Request URL

    POST 
    https://workplace.apigw.ntruss.com/common/apigw/v1/file/company/{companyId}
    

    Request path parameters

    ParameterTypeSizeRequirement statusDescription
    companyIdString36YIntegration key (CompanyId) of the customer to query Developers > Default settings > Integration key

    Request body parameters

    ParameterTypeSizeRequirement statusDescription
    fileFile100MBYAttachment

    Request examples

    POST https://workplace.apigw.ntruss.com/common/apigw/v1/file/company/e770da21-d7d9-405a-9bfc-9da400e13d38
    
    POST /common/apigw/v1/file/company/e770da21-d7d9-405a-9bfc-9da400e13d38
    HOST: workplace.apigw.ntruss.com
    Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZugW
    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=
    

    Response examples

    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
    

    Responses

    Returned as HTTP status codes in the response body

    HTTP status codeResponse messageDescription
    200OKNormal successful request
    201CreatedSuccessful resource creation
    400Bad RequestRequest failure
    500Internal Server Error- Common server error
    Error codes in the 400 range indicate client-side errors
    Error codes in the 500 range indicate server-side errors

    Response examples

    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: 6apj66ssmad1l64dpj6gp32d9h
    {
        "fileId": "3d799913-3ed8-4771-8620-4cbf88e66aee",
        "tenantId": "e770da21-d7d9-405a-9bfc-9da400e13d38",
        "companyId": "e770da21-d7d9-405a-9bfc-9da400e13d38",
        "fileStat": "TMP",
        "fileNm": "Archive 2.zip",
        "fileSz": 36569809,
        "creYmdt": 1661156834137
    }
    

    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.