Skip to content

Create fileset

Filesets are used to manage a collection of file objects as a single file resource within the File service. This allows for access management of these files to be performed in aggregate.

  • A space should be created. To know more about creating a space refer here
POST {baseUrl}/spaces/{spaceId}/uploads
  • HEADER:

    • Authorization: Bearer {tid token}
  • BODY:

    • name - Name of the file
    • parentId - Parent id for the file where it needs to be created
    • fileset - Boolean value to indicate if the file needs to be created as a fileset

After the upload operation is completed, the JSON response includes the id value for the file and URLs for your file upload.

Perform a PUT operation with the upload URL from the POST call in the previous step. Use the upload URL provided in the response to upload compressed fileset (.zip, .tar, or .tar.gz).

PUT {UPLOAD URL}
  • BODY: {File Content}

Run a GET upload API call to check the job status. The value should be COMPLETED.

GET {baseUrl}/spaces/{spaceId}/uploads/{uploadId}
  • HEADER:

    • Authorization: Bearer {tid token}

To know more about the upload fileset API refer here.