How can I get the FileID information?

Catherine Wong
Catherine Wong Explorer
edited 5:48AM in CFS Bulk File/TM3

How can I get the FileID information?

Tagged:

Answers

  • Hello @Catherine Wong

    You can get the FileID information from the HTTP GET request to /file-store/v1/file-sets endpoint. The fileid (or file-id) is in a file array property in the JSON message returned from the /file-store/v1/file-sets API call.

    Example JSON response:

    {"value":
          [
                {
                      "id":"xxxxxx",
                      "name":"TM3_YYYY-15T11:35:00.000-04:00",
                      "bucketName":"bulk-custom",
                      "packageId":"1111111",
                      "attributes":[],
                      "files":["asbcdfefg111111"],
                      "numFiles":1,
                      "contentFrom":"1970-01-01T00:00:00Z",
                      "contentTo":"2025-05-15T15:35:00Z",
                      "availableFrom":"2025-05-15T15:36:09Z",
                      "availableTo":"2025-11-15T15:36:09Z",
                      "status":"READY",
                      "created":"2025-05-15T15:36:09Z",
                      "modified":"2025-05-15T15:36:12Z"
                }
          ]
    }

    Based on an example JSON message above, the FileID is asbcdfefg111111.