Send Uploaded Signal for a File by Id
POST/api/workspaces/:workspace_id/files/:id/uploaded/
Viktor collects the metadata of a file and makes it available for usage in file field when this signal is called by the client.
Request
Path Parameters
A unique integer value identifying this field file.
- application/json
Body
required
UUID of the editor session. This field is only required when used from public endpoints.
Responses
- 200
- 401
- 403
- 405
- application/json
- Schema
- Example (from schema)
Schema
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.
{
"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.615Z",
"created_by": 0
}
No authentication found or authentication is not correct.
Specified path is not allowed
Permission evaluation:
((Is Authenticated Organization Admin OR Workspace Context Permission) OR Public Permission) AND Is Not App
Descriptions:
Is Authenticated Organization Admin
: User must be an Organization Admin.
Public Permission
: Checks corresponding workspace is public.
Workspace Context Permission
: Workspace must be available to the User.
Is Not App
: Client must not be a VIKTOR app.
File is not uploaded yet.