List All Files
GET/api/workspaces/:workspace_id/files/
List all files in the scope.
Files can have two different scopes, namely entity or session.
When file is scoped under entity, it will be available under the file discovery modal of that specific entity.
When file is scoped under session, it will only be available in the editor session lifetime and then destroyed.
Request
Path Parameters
Query Parameters
Pagination token indicating the next cursor position
Possible values: [entity, session]
Scope of the file. Can be one of: entity, session.
Filter by scoped entity id. It is only applicable in simple and tree app types.
Filter by scoped editor session. This field is required in editor-only app and not applicable in other types of apps.
FieldFile id. This field accepts multiple.
Possible values: non-empty and <= 10 characters
Type of the file which starts with dot(.). This field accepts multiple.
Maximum file size in bytes.(including)
Possible values: non-empty and <= 512 characters
Search term of the filename including extension.
Responses
- 200
- 400
- 401
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Count of all the objects in the result set.
Token for the results of the next page, to be sent as pagination_token in the next request.
results
object[]
required
Possible values: [entity, session]
Scope of the file. Can be one of: entity, session.
Id of entity which the file is bound.
Editor session to be scoped under. This field should be provided on editor app type only.
Possible values: non-empty and <= 512 characters
Name of the file to be uploaded.
Size of the file in bytes.
Creation date and time of the file.
ID of the user that created the file.
{
"count": 0,
"next_token": "string",
"results": [
{
"id": 0,
"scope": "entity",
"entity_id": 0,
"editor_session": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"filename": "string",
"file_size": 0,
"created_at": "2024-06-11T11:45:44.612Z",
"created_by": 0
}
]
}
Validation error response.
It produces a validation error schema like below.
{
"field1": ["Validation error"],
"non_field_errors": ["Sample non field validation error"]
}
No authentication found or authentication is not correct.