Folder
    • PDF

    Folder

    • PDF

    Article Summary

    Description

    API for managing folders in WORKBOX

    Query API

    Queries folder information

    Request URL

    GET https://workbox.apigw.ntruss.com/file-api/workbox-file-server/file-api/v1/folders/{folderId}
    

    Request headers

    HeaderDescription
    x-ncp-apigw-timestampIt indicates the time elapsed in milliseconds since January 1, 1970, 00:00:00 UTC
    and the request is considered invalid if the time difference with the API Gateway server is greater than 5 minutes
    x-ncp-apigw-timestamp:{Timestamp}
    x-ncp-iam-access-keyAccess key ID value issued from the NAVER Cloud Platform portal
    x-ncp-iam-access-key:{Account Access Key}
    x-ncp-apigw-signature-v2Signature encrypted with access key ID value and secret key
    x-ncp-apigw-signature-v2:{API Gateway Signature}
    x-ncp-workbox-loginIdLogin email address for WORKBOX
    x-ncp-workbox-loginId:{Login ID}
    Content-TypeSet the request body content type to application/json
    Content-Type: application/json

    Request path parameters

    ParameterTypeRequirement statusDescription
    folderIdlongYFolder ID

    Request examples

    GET https://workbox.apigw.ntruss.com/file-api/workbox-file-server/file-api/v1/folders/2485554
    
    GET file-api/workbox-file-server/file-api/v1/folders/2485554
    HOST: workbox.apigw.ntruss.com
    Content-Type: application/json
    x-ncp-apigw-timestamp : 1649054672370
    x-ncp-iam-access-key: toAvmFdP1rtPTMz2dpdy
    x-ncp-apigw-signature-v2 : sks3TlqeoWnd08TkfdmfAjrdjTekRhRlAhRhWlvmeka=
    x-ncp-workbox-loginId : gildong@sample.co.kr
    

    Response examples

    HTTP/1.1 200 OK
    access-control-allow-credentials: true 
    access-control-allow-methods: GET,POST,PUT,DELETE,OPTIONS 
    access-control-max-age: 3600 
    connection: keep-alive 
    content-type: application/json;charset=UTF-8 
    date: Tue, 05 Apr 2022 01:44:52 GMT 
    server: nginx 
    strict-transport-security: max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains 
    transfer-encoding: chunked 
    x-ncp-apigw-response-origin: ENDPOINT 
    x-ncp-trace-id: 38phmcpj30dr23cd9j68p34d9n 
    {
      "id": 2485554,
      "type": 1,
      "folderType": 1,
      "path": "gildong001",
      "uprFolderId": 0,
      "size": 5076,
      "creYmdt": "2022-04-05T01:01:28.962+0000",
      "modYmdt": "2022-04-05T01:29:06.586+0000",
      "allSubFoldersCount": 0,
      "allSubFilesCount": 1,
      "creator": {
        "userId": "bb891238-88cf-50f9-572e-9fe0111234a3",
        "userNm": "Honggildong",
        "userPhoto": null,
        "loginId": "gildong@sample.co.kr"
      },
      "modifier": {
        "userId": "bb891238-88cf-50f9-572e-9fe0111234a3",
        "userNm": "Honggildong",
        "userPhoto": null,
        "loginId": "gildong@sample.co.kr"
      },
      "uploadYmdt": null,
      "userModYmdt": "2022-04-05T01:29:06.586+0000",
      "lock": null,
      "onlineEditUrl": null
    }
    
    ParameterTypeDescription
    idlongFolder ID
    typeIntegerType
    folderTypeIntegerFolder type
    pathStringFolder path
    uprFolderIdlongParent folder ID (0 : top-level folder)
    sizelongSize
    creYmdtDateCreation date and time (yyyy-MM-dd'T'HH:mm:ss.SSSZ)
    modYmdtDateModification date and time (yyyy-MM-dd'T'HH:mm:ss.SSSZ)
    allSubFoldersCountlongNumber of subfolders
    allSubFilesCountlongNumber of subfiles
    creatorUserVoCreator (user)
    modifierUserVoModifier (user)
    uploadYmdtDateUpload date and time (null if folder type)
    lockFileLockInfoVoFile lock info (null if folder type)
    onlineEditUrlStringOnline edit URL (null if folder type)

    Folder create API

    Creates a folder.

    Request URL

    POST https://workbox.apigw.ntruss.com/file-api/workbox-file-server/file-api/v1/folders/{folderId}
    

    Request headers

    HeaderDescription
    x-ncp-apigw-timestampIt indicates the time elapsed in milliseconds since January 1, 1970, 00:00:00 UTC
    and the request is considered invalid if the time difference with the API Gateway server is greater than 5 minutes
    x-ncp-apigw-timestamp:{Timestamp}
    x-ncp-iam-access-keyAccess key ID value issued from the NAVER Cloud Platform portal
    x-ncp-iam-access-key:{Account Access Key}
    x-ncp-apigw-signature-v2Signature encrypted with access key ID value and secret key
    x-ncp-apigw-signature-v2:{API Gateway Signature}
    x-ncp-workbox-loginIdLogin email address for WORKBOX
    x-ncp-workbox-loginId:{Login ID}
    Content-TypeSet the request body content type to application/json
    Content-Type: application/json

    Request path parameters

    ParameterTypeRequirement statusDescription
    folderIdlongYFolder ID

    Request body parameters

    ParameterTypeRequirement statusDescription
    actionIntegerYAction
    folderNameStringYFolder name

    Request examples

    POST https://workbox.apigw.ntruss.com/file-api/workbox-file-server/file-api/v1/folders/2485554
    
    POST /file-api/workbox-file-server/file-api/v1/folders/2485554
    HOST: workbox.apigw.ntruss.com
    Content-Type: application/json
    x-ncp-apigw-timestamp : 1649054672370
    x-ncp-iam-access-key: toAvmFdP1rtPTMz2dpdy
    x-ncp-apigw-signature-v2 : sks3TlqeoWnd08TkfdmfAjrdjTekRhRlAhRhWlvmeka=
    x-ncp-workbox-loginId : gildong@sample.co.kr
    {
      "action": 1,
      "folderName": "string"
    }
    

    Response examples

    HTTP/1.1 200 OK
    access-control-allow-credentials: true 
    access-control-allow-methods: GET,POST,PUT,DELETE,OPTIONS 
    access-control-allow-origin: https://workbox.apigw.ntruss.com 
    access-control-max-age: 3600 
    connection: keep-alive 
    content-type: application/json;charset=UTF-8 
    date: Tue, 05 Apr 2022 06:52:56 GMT 
    server: nginx 
    strict-transport-security: max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains 
    transfer-encoding: chunked 
    x-ncp-apigw-response-origin: ENDPOINT 
    x-ncp-trace-id: 36chj6srj4d3430db16lhmaopj 
    {
      "folderType": 1,
      "creator": {
        "userId": "bb891238-88cf-50f9-572e-9fe0111234a3",
        "userNm": "Honggildong",
        "userPhoto": null,
        "loginId": "gildong@sample.co.kr"
      },
      "uprFolderId": 2485554,
      "creYmdt": "2022-04-05T06:52:56.047+0000",
      "sharedMemberCount": 0,
      "sharedMembers": [],
      "id": 2487419,
      "name": "string",
      "path": "gildong001/string",
      "type": 1
    }
    
    ParameterTypeDescription
    folderTypeIntegerFolder type
    creatorUserVoCreator
    uprFolderIdlongParent folder ID
    creYmdtDateCreation date and time (yyyy-MM-dd'T'HH:mm:ss.SSSZ)
    sharedMemberCountintNumber of shared users
    sharedMembersList<UserVo>Shared user list
    idlongFolder ID
    nameStringFolder name
    pathStringFolder path
    typeIntegerType

    Folder permission API

    Specifies folder permissions

    Request URL

    POST https://workbox.apigw.ntruss.com/file-api/workbox-file-server/file-api/v1/folders/{folderId}/auth
    

    Request headers

    HeaderDescription
    x-ncp-apigw-timestampIt indicates the time elapsed in milliseconds since January 1, 1970, 00:00:00 UTC
    and the request is considered invalid if the time difference with the API Gateway server is greater than 5 minutes
    x-ncp-apigw-timestamp:{Timestamp}
    x-ncp-iam-access-keyAccess key ID value issued from the NAVER Cloud Platform portal
    x-ncp-iam-access-key:{Account Access Key}
    x-ncp-apigw-signature-v2Signature encrypted with access key ID value and secret key
    x-ncp-apigw-signature-v2:{API Gateway Signature}
    x-ncp-workbox-loginIdLogin email address for WORKBOX
    x-ncp-workbox-loginId:{Login ID}
    Content-TypeSet the request body content type to application/json
    Content-Type: application/json

    Request path parameters

    ParameterTypeRequirement statusDescription
    folderIdlongYFolder ID

    Request body parameters

    ParameterTypeRequirement statusDescription
    addFolderAuthListYAccount info of user to whom folder permission is to be assigned
    deleteFolderAuthListYAccount info of user from whom folder permission is to be removed

    Request examples

    
    POST /file-api/workbox-file-server/file-api/v1/folders/2485554/auth
    HOST: workbox.apigw.ntruss.com
    Content-Type: application/json
    x-ncp-apigw-timestamp : 1649054672370
    x-ncp-iam-access-key: toAvmFdP1rtPTMz2dpdy
    x-ncp-apigw-signature-v2 : sks3TlqeoWnd08TkfdmfAjrdjTekRhRlAhRhWlvmeka=
    x-ncp-workbox-loginId : gildong@sample.co.kr
    {
      "addFolderAuth": [gildong001@sample.co.kr,gildong002@sample.co.kr]
    }
    

    Response examples

    access-control-allow-credentials: true 
    access-control-allow-methods: GET,POST,PUT,DELETE,OPTIONS 
    access-control-allow-origin: https://workbox.apigw.ntruss.com 
    access-control-max-age: 3600 
    connection: keep-alive 
    content-type: application/json;charset=UTF-8 
    date: Tue, 05 Apr 2022 06:52:56 GMT 
    server: nginx 
    strict-transport-security: max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains 
    transfer-encoding: chunked 
    x-ncp-apigw-response-origin: ENDPOINT 
    x-ncp-trace-id: 36chj6srj4d3430db16lhmaopj 
    

    Delete API

    Deletes a folder.

    Request URL

    DELETE https://workbox.apigw.ntruss.com/file-api/workbox-file-server/file-api/v1/folders/{folderId}
    

    Request headers

    HeaderDescription
    x-ncp-apigw-timestampIt indicates the time elapsed in milliseconds since January 1, 1970, 00:00:00 UTC
    and the request is considered invalid if the time difference with the API Gateway server is greater than 5 minutes
    x-ncp-apigw-timestamp:{Timestamp}
    x-ncp-iam-access-keyAccess key ID value issued from the NAVER Cloud Platform portal
    x-ncp-iam-access-key:{Account Access Key}
    x-ncp-apigw-signature-v2Signature encrypted with access key ID value and secret key
    x-ncp-apigw-signature-v2:{API Gateway Signature}
    x-ncp-workbox-loginIdLogin email address for WORKBOX
    x-ncp-workbox-loginId:{Login ID}
    Content-TypeSet the request body content type to application/json
    Content-Type: application/json

    Request path parameters

    ParameterTypeRequirement statusDescription
    folderIdLongYFolder ID

    Request examples

    DELETE https://workbox.apigw.ntruss.com/file-api/workbox-file-server/file-api/v1/folders/2487419
    
    DELETE /file-api/workbox-file-server/file-api/v1/folders/2487419
    HOST: workbox.apigw.ntruss.com
    Content-Type: application/json
    x-ncp-apigw-timestamp : 1649054672370
    x-ncp-iam-access-key: toAvmFdP1rtPTMz2dpdy
    x-ncp-apigw-signature-v2 : sks3TlqeoWnd08TkfdmfAjrdjTekRhRlAhRhWlvmeka=
    x-ncp-workbox-loginId : gildong@sample.co.kr
    

    Response examples

    HTTP/1.1 200 OK
    access-control-allow-credentials: true 
    access-control-allow-methods: GET,POST,PUT,DELETE,OPTIONS 
    access-control-allow-origin: https://workbox.apigw.ntruss.com 
    access-control-max-age: 3600 
    connection: keep-alive 
    content-length: 0 
    date: Tue, 05 Apr 2022 07:07:39 GMT 
    server: nginx 
    strict-transport-security: max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains 
    x-ncp-apigw-response-origin: ENDPOINT 
    x-ncp-trace-id: 68d1i6gqj8cpi3ed9g60p34dhh 
    

    Edit API

    Modifies folder name

    Request URL

    PATCH https://workbox.apigw.ntruss.com/file-api/workbox-file-server/file-api/v1/folders/{folderId}
    

    Request headers

    HeaderDescription
    x-ncp-apigw-timestampIt indicates the time elapsed in milliseconds since January 1, 1970, 00:00:00 UTC
    and the request is considered invalid if the time difference with the API Gateway server is greater than 5 minutes
    x-ncp-apigw-timestamp:{Timestamp}
    x-ncp-iam-access-keyAccess key ID value issued from the NAVER Cloud Platform portal
    x-ncp-iam-access-key:{Account Access Key}
    x-ncp-apigw-signature-v2Signature encrypted with access key ID value and secret key
    x-ncp-apigw-signature-v2:{API Gateway Signature}
    x-ncp-workbox-loginIdLogin email address for WORKBOX
    x-ncp-workbox-loginId:{Login ID}
    Content-TypeSet the request body content type to application/json
    Content-Type: application/json

    Request path parameters

    ParameterTypeRequirement statusDescription
    folderIdLongYFolder ID

    Request body parameters

    ParameterTypeRequirement statusDescription
    folderIdStringYFolder ID
    newNameStringYNew name

    Request examples

    PATCH https://workbox.apigw.ntruss.com/file-api/workbox-file-server/file-api/v1/folders/3387636
    
    PATCH /file-api/workbox-file-server/file-api/v1/folders/3387636
    HOST: workbox.apigw.ntruss.com
    Content-Type: application/json
    x-ncp-apigw-timestamp : 1649054672370
    x-ncp-iam-access-key: toAvmFdP1rtPTMz2dpdy
    x-ncp-apigw-signature-v2 : sks3TlqeoWnd08TkfdmfAjrdjTekRhRlAhRhWlvmeka=
    x-ncp-workbox-loginId : gildong@sample.co.kr
    {
        "folderId": "2485554",
        "newName": "test_0001"
    }
    

    Response examples

    HTTP/1.1 200 OK
    access-control-allow-credentials: true 
    access-control-allow-methods: GET,POST,PUT,DELETE,OPTIONS 
    access-control-allow-origin: https://workbox.apigw.ntruss.com 
    access-control-max-age: 3600 
    connection: keep-alive 
    content-length: 0 
    date: Tue, 05 Apr 2022 01:29:09 GMT 
    server: nginx 
    strict-transport-security: max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains 
    x-ncp-apigw-response-origin: ENDPOINT 
    x-ncp-trace-id: 66dj46hgmad9l3eor46cs38dpm
    

    Folder copy API

    Copies a specific folder to another folder

    Request URL

    POST https://workbox.apigw.ntruss.com/file-api/workbox-file-server/file-api/v1/folders/copy-batch
    

    Request headers

    HeaderDescription
    x-ncp-apigw-timestampIt indicates the time elapsed in milliseconds since January 1, 1970, 00:00:00 UTC
    and the request is considered invalid if the time difference with the API Gateway server is greater than 5 minutes
    x-ncp-apigw-timestamp:{Timestamp}
    x-ncp-iam-access-keyAccess key ID value issued from the NAVER Cloud Platform portal
    x-ncp-iam-access-key:{Account Access Key}
    x-ncp-apigw-signature-v2Signature encrypted with access key ID value and secret key
    x-ncp-apigw-signature-v2:{API Gateway Signature}
    x-ncp-workbox-loginIdLogin email address for WORKBOX
    x-ncp-workbox-loginId:{Login ID}
    Content-TypeSet the request body content type to application/json
    Content-Type: application/json

    Request body parameters

    ParameterTypeRequirement statusDescription
    foldersList<FolderItem>YFolder info

    Request examples

    POST https://workbox.apigw.ntruss.com/file-api/workbox-file-server/file-api/v1/folders/copy-batch
    
    POST /file-api/workbox-file-server/file-api/v1/folders/copy-batch
    HOST: workbox.apigw.ntruss.com
    Content-Type: application/json
    x-ncp-apigw-timestamp : 1649054672370
    x-ncp-iam-access-key: toAvmFdP1rtPTMz2dpdy
    x-ncp-apigw-signature-v2 : sks3TlqeoWnd08TkfdmfAjrdjTekRhRlAhRhWlvmeka=
    x-ncp-workbox-loginId : gildong@sample.co.kr
    {
      "folders": [
        {
          "action": 1,
          "destFolderId": 2485554,
          "folderType": 1,
          "id": 2486398
        },
        {
          "action": 1,
          "destFolderId": 2485554,
          "folderType": 2,
          "id": 2485768
        }
      ]
    }
    

    Response examples

    HTTP/1.1 200 OK
    access-control-allow-credentials: true 
    access-control-allow-methods: GET,POST,PUT,DELETE,OPTIONS 
    access-control-allow-origin: https://workbox.apigw.ntruss.com 
    access-control-max-age: 3600 
    connection: keep-alive 
    content-type: application/json;charset=UTF-8 
    date: Wed, 06 Apr 2022 02:10:29 GMT 
    server: nginx 
    strict-transport-security: max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains 
    transfer-encoding: chunked 
    x-ncp-apigw-response-origin: ENDPOINT 
    x-ncp-trace-id: 6adb66oo3ae1p36cr3cdim6dpn 
    {
      "conflictContents": []
    }
    
    ParameterTypeDescription
    conflictContentsList<CopyResultItem>Duplicate folder history (folder name conflict)

    Folder move API

    Moves a specific folder to another folder

    Request URL

    POST https://workbox.apigw.ntruss.com/file-api/workbox-file-server/file-api/v1/folders/move-batch
    

    Request headers

    HeaderDescription
    x-ncp-apigw-timestampIt indicates the time elapsed in milliseconds since January 1, 1970, 00:00:00 UTC
    and the request is considered invalid if the time difference with the API Gateway server is greater than 5 minutes
    x-ncp-apigw-timestamp:{Timestamp}
    x-ncp-iam-access-keyAccess key ID value issued from the NAVER Cloud Platform portal
    x-ncp-iam-access-key:{Account Access Key}
    x-ncp-apigw-signature-v2Signature encrypted with access key ID value and secret key
    x-ncp-apigw-signature-v2:{API Gateway Signature}
    x-ncp-workbox-loginIdLogin email address for WORKBOX
    x-ncp-workbox-loginId:{Login ID}
    Content-TypeSet the request body content type to application/json
    Content-Type: application/json

    Request body parameters

    ParameterTypeRequirement statusDescription
    foldersList<FolderItem>YFolder info
    topMoveFoldersList<Integer>NSet value by pairing the ID of the folder to be moved with the ID of the destination folder

    Request examples

    POST https://workbox.apigw.ntruss.com/file-api/workbox-file-server/file-api/v1/folders/move-batch
    
    POST /file-api/workbox-file-server/file-api/v1/folders/move-batch
    HOST: workbox.apigw.ntruss.com
    Content-Type: application/json
    x-ncp-apigw-timestamp : 1649054672370
    x-ncp-iam-access-key: toAvmFdP1rtPTMz2dpdy
    x-ncp-apigw-signature-v2 : sks3TlqeoWnd08TkfdmfAjrdjTekRhRlAhRhWlvmeka=
    x-ncp-workbox-loginId : gildong@sample.co.kr
    {
      "folders": [
        {
          "action": 1,
          "destFolderId": 2485554,
          "folderType": 2,
          "id": 2485768
        }
      ],
      "topMoveFolders": [
        2485768, 2485554
      ]
    }
    

    Response examples

    HTTP/1.1 200 OK
    access-control-allow-credentials: true 
    access-control-allow-methods: GET,POST,PUT,DELETE,OPTIONS 
    access-control-allow-origin: https://workbox.apigw.ntruss.com 
    access-control-max-age: 3600 
    connection: keep-alive 
    content-type: application/json;charset=UTF-8 
    date: Wed, 06 Apr 2022 01:58:27 GMT 
    server: nginx 
    strict-transport-security: max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains 
    transfer-encoding: chunked 
    x-ncp-apigw-response-origin: ENDPOINT 
    x-ncp-trace-id: 30e9h6hgjadb230e31c8qj8c1p 
    {
      "conflictContents": [],
      "topMoveFolders": [
        2485768,
        2485554
      ]
    }
    
    ParameterTypeDescription
    conflictContentsList<CopyResultItem>Duplicate folder history (folder name conflict)
    topMoveFoldersListSet value by pairing the ID of the folder to be moved with the ID of the destination folder

    Subfolder list query API

    Queries a list of subfolders in a specified folder

    Request URL

    POST https://workbox.apigw.ntruss.com/file-api/workbox-file-server/file-api/v1/folders/{folderId}/list
    

    Request headers

    HeaderDescription
    x-ncp-apigw-timestampIt indicates the time elapsed in milliseconds since January 1, 1970, 00:00:00 UTC
    and the request is considered invalid if the time difference with the API Gateway server is greater than 5 minutes
    x-ncp-apigw-timestamp:{Timestamp}
    x-ncp-iam-access-keyAccess key ID value issued from the NAVER Cloud Platform portal
    x-ncp-iam-access-key:{Account Access Key}
    x-ncp-apigw-signature-v2Signature encrypted with access key ID value and secret key
    x-ncp-apigw-signature-v2:{API Gateway Signature}
    x-ncp-workbox-loginIdLogin email address for WORKBOX
    x-ncp-workbox-loginId:{Login ID}
    Content-TypeSet the request body content type to application/json
    Content-Type: application/json

    Request path parameters

    ParameterTypeRequirement statusDescription
    folderIdLongYFolder ID

    Request body parameters

    ParameterTypeRequirement statusDescription
    includeFileBooleanYFile inclusion status
    includeFolderBooleanYFolder inclusion status
    onlyGenByMeBooleanYWhether to include only self-created files/folders
    pageNumIntegerYPage number
    pageSizeIntegerYPage size

    Request examples

    POST https://workbox.apigw.ntruss.com/file-api/workbox-file-server/file-api/v1/folders/2485554/list
    
    POST /file-api/workbox-file-server/file-api/v1/folders/2485554/list
    HOST: workbox.apigw.ntruss.com
    Content-Type: application/json
    x-ncp-apigw-timestamp : 1649054672370
    x-ncp-iam-access-key: toAvmFdP1rtPTMz2dpdy
    x-ncp-apigw-signature-v2 : sks3TlqeoWnd08TkfdmfAjrdjTekRhRlAhRhWlvmeka=
    x-ncp-workbox-loginId : gildong@sample.co.kr
    {
      "includeFile": true,
      "includeFolder": true,
      "onlyGenByMe": true,
      "pageNum": 1,
      "pageSize": 10
    }
    

    Response examples

    HTTP/1.1 200 OK
    access-control-allow-credentials: true 
    access-control-allow-methods: GET,POST,PUT,DELETE,OPTIONS 
    access-control-allow-origin: https://workbox.apigw.ntruss.com 
    access-control-max-age: 3600 
    connection: keep-alive 
    content-type: application/json;charset=UTF-8 
    date: Tue, 05 Apr 2022 05:17:40 GMT 
    server: nginx 
    strict-transport-security: max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains 
    transfer-encoding: chunked 
    x-ncp-apigw-response-origin: ENDPOINT 
    x-ncp-trace-id: 62p1j70p64cr368d1i65h3ec9p
    
    {
      "total": 2,
      "pageNum": 1,
      "pageSize": 10,
      "totalPage": 1,
      "folderId": 2485554,
      "folderName": "gildong001",
      "folderPath": "gildong001",
      "folderType": 1,
      "uprFolderId": 0,
      "masters": [
        {
          "userId": "bb891238-88cf-50f9-572e-9fe0111234a3",
          "userNm": "Honggildong",
          "userPhoto": null,
          "loginId": "gildong@sample.co.kr"
        }
      ],
      "creator": {
        "userId": "bb891238-88cf-50f9-572e-9fe0111234a3",
        "userNm": "Honggildong",
        "userPhoto": null,
        "loginId": "gildong@sample.co.kr"
      },
      "creYmdt": "2022-04-05T01:01:28.962+0000",
      "modifier": {
        "userId": "bb891238-88cf-50f9-572e-9fe0111234a3",
        "userNm": "Honggildong",
        "userPhoto": null,
        "loginId": "gildong@sample.co.kr"
      },
      "modYmdt": "2022-04-05T01:29:06.586+0000",
      "sharedMemberCount": 1,
      "folderAuth": 1,
      "companyName": "REAL workbox1",
      "starred": false,
      "hasSubFolder": true,
      "resources": [
        {
          "id": 2486666,
          "name": "0001",
          "path": "gildong001/0001",
          "size": 0,
          "type": 1,
          "folderType": 1,
          "uprFolderId": 2485554,
          "rootFolderId": 2485554,
          "creator": {
            "userId": "bb891238-88cf-50f9-572e-9fe0111234a3",
            "userNm": "Honggildong",
            "userPhoto": null,
            "loginId": "gildong@sample.co.kr"
          },
          "creYmdt": "2022-04-05T05:16:43.578+0000",
          "modifier": {
            "us+E5erId": "bb891238-88cf-50f9-572e-9fe0111234a3",
            "userNm": "Honggildong",
            "userPhoto": null,
            "loginId": "gildong@sample.co.kr"
          },
          "modYmdt": "2022-04-05T05:16:43.578+0000",
          "sharedMemberCount": 1,
          "folderAuth": 1,
          "hasSubFolder": true,
          "prohibited": false,
          "prohibitCode": 0,
          "checkSum": null,
          "masters": [
            {
              "userId": "bb891238-88cf-50f9-572e-9fe0111234a3",
              "userNm": "Honggildong",
              "userPhoto": null,
              "loginId": "gildong@sample.co.kr"
            }
          ],
          "userModYmdt": "2022-04-05T05:16:43.578+0000",
          "fullText": null,
          "thumbnailUrl": null,
          "starred": false,
          "isStarred": false,
          "userModYmdtMills": 1649135803578
        },
        {
          "id": 18614377,
          "name": "test_newName_0001",
          "path": "gildong001/test_newName_0001",
          "size": 5076,
          "type": 2,
          "folderType": 1,
          "uprFolderId": 2485554,
          "rootFolderId": 2485554,
          "creator": {
            "userId": "bb891238-88cf-50f9-572e-9fe0111234a3",
            "userNm": "Honggildong",
            "userPhoto": null,
            "loginId": "gildong@sample.co.kr"
          },
          "creYmdt": "2022-04-05T01:04:32.185+0000",
          "modifier": {
            "userId": "bb891238-88cf-50f9-572e-9fe0111234a3",
            "userNm": "Honggildong",
            "userPhoto": null,
            "loginId": "gildong@sample.co.kr"
          },
          "modYmdt": "2022-04-05T04:18:02.416+0000",
          "sharedMemberCount": 1,
          "folderAuth": 1,
          "hasSubFolder": false,
          "prohibited": false,
          "prohibitCode": 0,
          "checkSum": "013faeb7b49494ffec714a3536cc079c",
          "masters": [
            {
              "userId": "bb891238-88cf-50f9-572e-9fe0111234a3",
              "userNm": "Honggildong",
              "userPhoto": null,
              "loginId": "gildong@sample.co.kr"
            }
          ],
          "userModYmdt": "2022-04-05T01:04:32.185+0000",
          "fullText": null,
          "thumbnailUrl": null,
          "starred": false,
          "isStarred": false,
          "userModYmdtMills": 1649120672185
        }
      ],
      "ancestors": [],
      "isStarred": false
    }
    
    ParameterTypeDescription
    totalIntegerTotal number of queries
    pageNumIntegerPage number
    pageSizeIntegerPage size
    totalPageIntegerTotal number of pages
    folderIdlongFolder ID
    folderNameStringFolder name
    folderPathStringFolder path
    folderTypeIntegerFolder type
    uprFolderIdlongParent folder ID
    mastersList<UserVo>Master authority list
    creatorUserVoCreator info
    creYmdtDateCreation date
    modifierUserVoModifier info
    modYmdtDateModification date
    sharedMemberCountlongNumber of shared users
    folderAuthIntegerFolder permissions
    resourceVosList<ResourceVo>Resource list
    ancestorsList<AncestorFolderVo>Parent folder list
    companyNameStringCompany name
    isStarredbooleanFavorites status

    Private folder list query API

    Queries a list of files and subfolders in a private folder

    Request URL

    POST https://workbox.apigw.ntruss.com/file-api/workbox-file-server/file-api/v1/folders/private-list
    

    Request headers

    HeaderDescription
    x-ncp-apigw-timestampIt indicates the time elapsed in milliseconds since January 1, 1970, 00:00:00 UTC
    and the request is considered invalid if the time difference with the API Gateway server is greater than 5 minutes
    x-ncp-apigw-timestamp:{Timestamp}
    x-ncp-iam-access-keyAccess key ID value issued from the NAVER Cloud Platform portal
    x-ncp-iam-access-key:{Account Access Key}
    x-ncp-apigw-signature-v2Signature encrypted with access key ID value and secret key
    x-ncp-apigw-signature-v2:{API Gateway Signature}
    x-ncp-workbox-loginIdLogin email address for WORKBOX
    x-ncp-workbox-loginId:{Login ID}
    Content-TypeSet the request body content type to application/json
    Content-Type: application/json

    Request body parameters

    ParameterTypeRequirement statusDescription
    pageNumintYPage number
    pageSizeintYPage size

    Request examples

    POST https://workbox.apigw.ntruss.com/file-api/workbox-file-server/file-api/v1/folders/private-list
    
    POST /file-api/workbox-file-server/file-api/v1/folders/private-list
    HOST: workbox.apigw.ntruss.com
    Content-Type: application/json
    x-ncp-apigw-timestamp : 1649054672370
    x-ncp-iam-access-key: toAvmFdP1rtPTMz2dpdy
    x-ncp-apigw-signature-v2 : sks3TlqeoWnd08TkfdmfAjrdjTekRhRlAhRhWlvmeka=
    x-ncp-workbox-loginId : gildong@sample.co.kr
    {
        "pageNum": 1,
        "pageSize": 10
    }
    

    Response examples

    HTTP/1.1 200 OK
    access-control-allow-credentials: true 
    access-control-allow-methods: GET,POST,PUT,DELETE,OPTIONS 
    access-control-allow-origin: https://workbox.apigw.ntruss.com 
    access-control-max-age: 3600 
    connection: keep-alive 
    content-type: application/json;charset=UTF-8 
    date: Tue, 05 Apr 2022 02:07:01 GMT 
    server: nginx 
    strict-transport-security: max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains 
    transfer-encoding: chunked 
    x-ncp-apigw-response-origin: ENDPOINT 
    x-ncp-trace-id: 3id34c8omcohl38cpk75i68cb2 
    {
      "rootFolderId": 2242698,
      "total": 1,
      "pageNum": 1,
      "pageSize": 10,
      "totalPage": 1,
      "resourceVos": [
        {
          "id": 2485768,
          "name": "test_pri_0001",
          "path": "test_pri_0001",
          "size": 0,
          "type": 1,
          "folderType": 2,
          "uprFolderId": 2242698,
          "rootFolderId": 2242698,
          "creator": {
            "userId": "bb891238-88cf-50f9-572e-9fe0111234a3",
            "userNm": "Honggildong",
            "userPhoto": null,
            "loginId": "gildong@sample.co.kr"
          },
          "creYmdt": "2022-04-05T01:57:06.844+0000",
          "modifier": {
            "userId": "bb891238-88cf-50f9-572e-9fe0111234a3",
            "userNm": "Honggildong",
            "userPhoto": null,
            "loginId": "gildong@sample.co.kr"
          },
          "modYmdt": "2022-04-05T01:57:06.844+0000",
          "sharedMemberCount": 1,
          "folderAuth": 1,
          "hasSubFolder": false,
          "prohibited": false,
          "prohibitCode": 0,
          "checkSum": null,
          "masters": [
            {
              "userId": "bb891238-88cf-50f9-572e-9fe0111234a3",
              "userNm": "Honggildong",
              "userPhoto": null,
              "loginId": "gildong@sample.co.kr"
            }
          ],
          "userModYmdt": "2022-04-05T01:57:06.844+0000",
          "fullText": null,
          "thumbnailUrl": null,
          "starred": false,
          "isStarred": false,
          "userModYmdtMills": 1649123826844
        }
      ]
    }
    
    ParameterTypeDescription
    rootFolderIdlongTop-level folder ID
    totalIntegerTotal number of queries
    pageNumIntegerPage number
    pageSizeIntegerPage size
    totalPageIntegerTotal number of pages
    resourceVosList<ResourceVo>Resource list

    Folder download API

    Downloads files and subfolders from a folder

    Request URL

    GET https://workbox.apigw.ntruss.com/file-api/workbox-file-server/file-api/v1/folders/{folderId}/download-zip
    

    Request headers

    HeaderDescription
    x-ncp-apigw-timestampIt indicates the time elapsed in milliseconds since January 1, 1970, 00:00:00 UTC
    and the request is considered invalid if the time difference with the API Gateway server is greater than 5 minutes
    x-ncp-apigw-timestamp:{Timestamp}
    x-ncp-iam-access-keyAccess key ID value issued from the NAVER Cloud Platform portal
    x-ncp-iam-access-key:{Account Access Key}
    x-ncp-apigw-signature-v2Signature encrypted with access key ID value and secret key
    x-ncp-apigw-signature-v2:{API Gateway Signature}
    x-ncp-workbox-loginIdLogin email address for WORKBOX
    x-ncp-workbox-loginId:{Login ID}
    Content-TypeSet the request body content type to application/json
    Content-Type: application/json

    Request path parameters

    ParameterTypeRequirement statusDescription
    folderIdLongYFolder ID

    Request examples

    GET https://workbox.apigw.ntruss.com/file-api/workbox-file-server/file-api/v1/folders/2485554/download-zip
    
    GET /file-api/workbox-file-server/file-api/v1/folders/2485554/download-zip
    HOST: workbox.apigw.ntruss.com
    Content-Type: application/json
    x-ncp-apigw-timestamp : 1649054672370
    x-ncp-iam-access-key: toAvmFdP1rtPTMz2dpdy
    x-ncp-apigw-signature-v2 : sks3TlqeoWnd08TkfdmfAjrdjTekRhRlAhRhWlvmeka=
    x-ncp-workbox-loginId : gildong@sample.co.kr
    

    Response examples

    HTTP/1.1 200 OK
    access-control-allow-credentials: true 
    access-control-allow-methods: GET,POST,PUT,DELETE,OPTIONS 
    access-control-max-age: 3600 
    connection: keep-alive 
    content-disposition: attachment;filename*=UTF-8''gildong_20220405.zip 
    content-type: application/zip 
    date: Tue, 05 Apr 2022 01:28:08 GMT 
    server: nginx 
    strict-transport-security: max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains 
    E5 transfer-encoding: chunked 
    x-ncp-apigw-response-origin: ENDPOINT 
    x-ncp-trace-id: 3ce1ocosjae1h36phn6hh3ep1p 
    
    gildong_20220405.zip file download
    

    Shared folder list query API

    Queries a list of folders in the top-level shared folder

    Request URL

    POST https://workbox.apigw.ntruss.com/file-api/workbox-file-server/file-api/v1/folders/shared-list
    

    Request headers

    HeaderDescription
    x-ncp-apigw-timestampIt indicates the time elapsed in milliseconds since January 1, 1970, 00:00:00 UTC
    and the request is considered invalid if the time difference with the API Gateway server is greater than 5 minutes
    x-ncp-apigw-timestamp:{Timestamp}
    x-ncp-iam-access-keyAccess key ID value issued from the NAVER Cloud Platform portal
    x-ncp-iam-access-key:{Account Access Key}
    x-ncp-apigw-signature-v2Signature encrypted with access key ID value and secret key
    x-ncp-apigw-signature-v2:{API Gateway Signature}
    x-ncp-workbox-loginIdLogin email address for WORKBOX
    x-ncp-workbox-loginId:{Login ID}
    Content-TypeSet the request body content type to application/json
    Content-Type: application/json

    Request examples

    POST https://workbox.apigw.ntruss.com/file-api/workbox-file-server/file-api/v1/folders/shared-list
    
    POST /file-api/workbox-file-server/file-api/v1/folders/shared-list
    HOST: workbox.apigw.ntruss.com
    Content-Type: application/json
    x-ncp-apigw-timestamp : 1649054672370
    x-ncp-iam-access-key: toAvmFdP1rtPTMz2dpdy
    x-ncp-apigw-signature-v2 : sks3TlqeoWnd08TkfdmfAjrdjTekRhRlAhRhWlvmeka=
    x-ncp-workbox-loginId : gildong@sample.co.kr
    

    Response examples

    HTTP/1.1 200 OK
    access-control-allow-credentials: true 
    access-control-allow-methods: GET,POST,PUT,DELETE,OPTIONS 
    access-control-allow-origin: https://workbox.apigw.ntruss.com 
    access-control-max-age: 3600 
    connection: keep-alive 
    content-type: application/json;charset=UTF-8 
    date: Tue, 12 Apr 2022 01:07:31 GMT 
    server: nginx 
    strict-transport-security: max-age=31536000; includeSubDomains, max-age=31536000; includeSubDomains 
    transfer-encoding: chunked 
    x-ncp-apigw-response-origin: ENDPOINT 
    x-ncp-trace-id: 34cr1c9gjecr364c33cgr66or4 
    [
      {
        "id": 2485554,
        "name": "gildong001",
        "path": "gildong001",
        "size": 0,
        "type": 1,
        "folderType": 1,
        "uprFolderId": 0,
        "rootFolderId": 2485554,
        "creator": {
          "userId": "bb891238-88cf-50f9-572e-9fe0111234a3",
          "userNm": "Honggildong",
          "userPhoto": null,
          "loginId": "gildong@sample.co.kr"
        },
        "creYmdt": "2022-04-05T01:01:28.962+0000",
        "modifier": {
          "userId": "bb891238-88cf-50f9-572e-9fe0111234a3",
          "userNm": "Honggildong",
          "userPhoto": null,
          "loginId": "gildong@sample.co.kr"
        },
        "modYmdt": "2022-04-05T01:29:06.586+0000",
        "sharedMemberCount": 1,
        "folderAuth": 1,
        "hasSubFolder": true,
        "prohibited": false,
        "prohibitCode": 0,
        "checkSum": null,
        "masters": [
          {
            "userId": "bb891238-88cf-50f9-572e-9fe0111234a3",
            "userNm": "Honggildong",
            "userPhoto": null,
            "loginId": "gildong@sample.co.kr"
          }
        ],
        "userModYmdt": "2022-04-05T01:29:06.586+0000",
        "fullText": null,
        "thumbnailUrl": null,
        "starred": false,
        "isStarred": false,
        "userModYmdtMills": 1649122146586
      },
      {
        "id": 2486398,
        "name": "gildong002",
        "path": "gildong002",
        "size": 0,
        "type": 1,
        "folderType": 1,
        "uprFolderId": 0,
        "rootFolderId": 2486398,
        "creator": {
          "userId": "bb891238-88cf-50f9-572e-9fe0111234a3",
          "userNm": "Honggildong",
          "userPhoto": null,
          "loginId": "gildong@sample.co.kr"
        },
        "creYmdt": "2022-04-05T04:19:22.618+0000",
        "modifier": {
          "userId": "bb891238-88cf-50f9-572e-9fe0111234a3",
          "userNm": "Honggildong",
          "userPhoto": null,
          "loginId": "gildong@sample.co.kr"
        },
        "modYmdt": "2022-04-05T04:19:22.623+0000",
        "sharedMemberCount": 1,
        "folderAuth": 1,
        "hasSubFolder": false,
        "prohibited": false,
        "prohibitCode": 0,
        "checkSum": null,
        "masters": [
          {
            "userId": "bb891238-88cf-50f9-572e-9fe0111234a3",
            "userNm": "Honggildong",
            "userPhoto": null,
            "loginId": "gildong@sample.co.kr"
          }
        ],
        "userModYmdt": "2022-04-05T04:19:22.623+0000",
        "fullText": null,
        "thumbnailUrl": null,
        "starred": false,
        "isStarred": false,
        "userModYmdtMills": 1649132362623
      }
    ]
    
    TypeDescription
    List<ResourceVo>Resource list

    Responses

    Returned as HTTP status codes in the response body

    HTTP status codeResponse messageDescription
    200OKNormal successful request
    201CreatedSuccessful resource creation
    400Bad RequestRequest failure (common response when a request received is in a format that the server cannot parse)
    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

    Types

    CodeDescription
    1Folder
    2File

    Folder types

    CodeDescription
    1Public folder (shared)
    2Private folder

    Folder permissions

    CodeDescription
    1Master (admin)
    2Write
    3Read

    Actions

    CodeDescription
    1Normal/skip (default value)
    2Overwrite
    3Rename

    Reasons for prohibited action

    CodeDescription
    0NONE
    1PROHIBITED
    2MALICIOUS
    3REPORTED
    4BLOCKED

    FolderItem

    ParameterTypeRequirement statusDescription
    idlongYFolder ID
    destFolderIdLongY- ID of the destination folder to which the file will be copied
    actionintNAction
    folderTypeIntegerNFolder type

    UserVo

    ParameterTypeDescription
    userIdStringUser ID
    userNmStringUser name
    userPhotoStringURL for user photo
    loginIdStringLogin ID

    FileLockInfoVo

    ParameterTypeDescription
    fileIdlongFile ID
    creYmdtDateCreation date and time
    createUserIdStringCreator’s user ID
    createUserUserVoCreator (user)

    CopyResultItem

    ParameterTypeDescription
    destFolderIdlongDestination folder ID
    srcCopyResultContentItemDestination folder info
    existCopyResultContentItemDuplicate folder info
    canOverwritebooleanOverwrite status

    CopyResultContentItem

    ParameterTypeDescription
    nameStringTarget name
    typeintType
    sizelongSize
    creYmdtDateCreation date and time
    modYmdtDateModification date and time
    lockFileLockInfoVoLocked file info

    ResourceVo

    ParameterTypeDescription
    idlongFile or folder ID
    nameStringFile name or file ID
    sizelongSize
    typeIntegerType
    folderTypeIntegerFolder type
    uprFolderIdlongParent folder ID
    rootFolderIdlongTop-level folder ID (if type is folder)
    creatorUserVoCreator info
    creYmdtDateCreation date and time
    modifierUserVoModifier info
    modYmdtDateModification date and time
    sharedMemberCountlongNumber of shared users
    folderAuthIntegerFolder permissions
    isStarredbooleanFavorites status
    hasSubFolderbooleanSubfolder presence status
    prohibitedbooleanProhibition status
    prohibitCodeintReason for prohibited action
    checkSumStringChecksum if file, null if folder
    mastersList<UserVo>Master user info
    userModYmdtDateUser modification date and time
    fullTextString
    thumbnailUrlStringThumbnail URL
    lockFileLockInfoVoLocked file info

    AncestorFolderVo

    ParameterTypeDescription
    folderIdlongFolder ID
    folderTypeIntegerFolder type
    folderPathStringFolder path
    folderNameStringFolder name

    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.