Skip to main content

List folder contents

GET
/file/v2/orgs/{organisation_id}/workspaces/{workspace_id}/files

Request to list files. The maximum number of results returned is limited to 5000.

Request

Path parameters

Example: "00000000-0000-0000-0000-000000000000"

The customer's organisation organisation ID.

Example: "00000000-0000-0000-0000-000000000000"

The ID of the workspace in the organization.

Query parameters
Default: 5000

The number of results to return.

The number of results to skip.

When true, only files that have been deleted will be returned

Example: "00000000-0000-0000-0000-000000000000"

The ID of the author to filter on.

Example: "drilling_data"

The name of the file to filter on. Will perform a case insensitive partial match, so the query file_name=gold will match a file with the name allgoldcolumns.csv.

Example: "gte:2023-03-10T22:56:53Z"

A date or dates (max 2) to filter files by. Dates may contain operator prefixes, in the form <operator>:<datetime>. The following operators are available (lt=less than, lte=less than or equal to, gt=greater than, gte=greater than or equal to).If you omit the operator, then it is assumed the operator is 'equal to'. In this case you may only supply one date. The dates must also be in a valid ISO 8601 format.Dates may include a UTC offset. If the offset is omitted, the timezone is assumed to be UTC.

Example: "00000000-0000-0000-0000-000000000000"

The ID of the last person to modify the file to filter on.

Example: "gte:2023-03-10T22:56:53Z"

A date or dates (max 2) to filter files by. Dates may contain operator prefixes, in the form <operator>:<datetime>. The following operators are available (lt=less than, lte=less than or equal to, gt=greater than, gte=greater than or equal to).If you omit the operator, then it is assumed the operator is 'equal to'. In this case you may only supply one date. The dates must also be in a valid ISO 8601 format.Dates may include a UTC offset. If the offset is omitted, the timezone is assumed to be UTC.

Example: "00000000-0000-0000-0000-000000000000"

The UUID of the user that deleted a file

Example: "gte:2023-03-10T22:56:53Z"

A date or dates (max 2) to filter files by. Dates may contain operator prefixes, in the form <operator>:<datetime>. The following operators are available (lt=less than, lte=less than or equal to, gt=greater than, gte=greater than or equal to).If you omit the operator, then it is assumed the operator is 'equal to'. In this case you may only supply one date. The dates must also be in a valid ISO 8601 format.Dates may include a UTC offset. If the offset is omitted, the timezone is assumed to be UTC.

Example: "order_by=modified_at,desc:created_at"

A comma separated list of fields to order by, where the default sort order is ascending. To specify the sort order, prefix the field name with either asc: or desc: for ascending or descending respectively. Field names can be one of the following known sort fields: created_at, modified_at, deleted_at

Responses

200

A list of files

countinteger
created_atdate-time
created_byobject | null
deleted_atstring | null
deleted_byobject | null
etagstring
file_iduuid
selfstring
modified_atdate-time
modified_byobject | null
namestring
pathstring
sizeinteger
version_idint64
limitinteger
nextstring | null
prevstring | null
selfstring
offsetinteger
totalinteger

400

/file-api/files/invalid-path

Invalid request path.

/file-api/bad-request

Bad request. The server cannot or will not process the request due to a client error.

detailstring | null
statusinteger
Default: 400
titlestring
Default: "Invalid Path."
typestring
Default: "https://seequent.com/error-codes/file-api/files/invalid-path"
detailstring | null
statusinteger
Default: 400
titlestring
Default: "Bad Request."
typestring
Default: "https://seequent.com/error-codes/file-api/bad-request"

401

/file-api/auth/missing-token

Unauthorized. The client request has not been completed as the provided credentials are invalid.

/file-api/auth/invalid-token

Forbidden. The client credentials are valid but do not permit access to this resource.

detailstring | null
statusinteger
Default: 401
titlestring
Default: "Access Denied."
typestring
Default: "https://seequent.com/error-codes/file-api/auth/missing-token"
detailstring | null
statusinteger
Default: 401
titlestring
Default: "Access Denied."
typestring
Default: "https://seequent.com/error-codes/file-api/auth/invalid-token"

403

/file-api/auth/insufficient-role

Forbidden. The client credentials are valid but the client does not have a sufficient role to access to this resource.

detailstring | null
permitted_rolesarray
Default: []
statusinteger
Default: 403
titlestring
Default: "Insufficient Role."
typestring
Default: "https://seequent.com/error-codes/file-api/auth/insufficient-role"
your_rolestring

422

/file-api/validation

The request was invalid and will not be processed due to a client error.

detailstring | null
statusinteger
Default: 422
titlestring
Default: "Validation Error."
typestring
Default: "https://seequent.com/error-codes/file-api/validation"

500

/file-api/api-errors

A server error has occurred.

detailstring | null
statusinteger
Default: 500
titlestring
Default: "An Error Occurred."
typestring
Default: "https://seequent.com/error-codes/file-api/api-errors"

502

/file-api/metadata/store-error

A database error occurred when listing files.

/file-api/bad-gateway

Bad gateway. A response required to handle the request is invalid.

detailstring | null
statusinteger
Default: 502
titlestring
Default: "File Metadata Storage Operation Failed."
typestring
Default: "https://seequent.com/error-codes/file-api/metadata/store-error"
detailstring | null
statusinteger
Default: 502
titlestring
Default: "Bad Gateway."
typestring
Default: "https://seequent.com/error-codes/file-api/bad-gateway"

© Seequent, The Bentley Subsurface Company