Skip to main content

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

    workspace_id stringrequired
    id integerrequired

    A unique integer value identifying this field file.

Body

required

    editor_session uuid

    UUID of the editor session. This field is only required when used from public endpoints.

Responses

Schema

    id integer
    scope stringrequired

    Possible values: [entity, session]

    Scope of the file. Can be one of: entity, session.

    entity_id integerrequired

    Id of entity which the file is bound.

    editor_session uuidrequired

    Editor session to be scoped under. This field should be provided on editor app type only.

    filename stringrequired

    Possible values: non-empty and <= 512 characters

    Name of the file to be uploaded.

    file_size integerrequired

    Size of the file in bytes.

    created_at date-timerequired

    Creation date and time of the file.

    created_by integernullable

    ID of the user that created the file.

Loading...