Skip to main content

Upload File From Url

PUT 

/api/v1/files/upload_from_url

Upload a file to S3 from a URL.

Request

Query Parameters

    project_id any
    organization_id any

Cookie Parameters

    session any

Body

required

    name

    object

    anyOf

    string

    Possible values: non-empty and <= 3000 characters

    url urirequired

    URL of the file to download

    Possible values: non-empty

    proxy_url

    object

    URL of the proxy server to use for downloading the file

    anyOf

    string

    Possible values: non-empty

    request_headers

    object

    Headers to include in the request when downloading the file

    anyOf

    property name* string
    verify_ssl Verify Ssl (boolean)

    Whether to verify the SSL certificate when downloading the file

    Default value: true
    follow_redirects Follow Redirects (boolean)

    Whether to follow redirects when downloading the file

    Default value: true

    resource_info

    object

    Resource information for the file

    anyOf

    property name*

    object

    anyOf

    object

Responses

Successful Response

Schema

    id uuidrequired

    Unique identifier

    created_at

    object

    Creation datetime

    anyOf

    string

    updated_at

    object

    Update datetime

    anyOf

    string

    name Name (string)required

    Possible values: non-empty and <= 3000 characters

    external_file_id External File Id (string)required

    The ID of the file in the external system

    file_size

    object

    Size of the file in bytes

    anyOf

    integer

    file_type

    object

    File type (e.g. pdf, docx, etc.)

    anyOf

    string

    Possible values: non-empty and <= 3000 characters

    project_id uuidrequired

    The ID of the project that the file belongs to

    last_modified_at

    object

    The last modified time of the file

    anyOf

    string

    resource_info

    object

    Resource information for the file

    anyOf

    property name*

    object

    anyOf

    object

    permission_info

    object

    Permission information for the file

    anyOf

    property name*

    object

    anyOf

    object

    data_source_id

    object

    The ID of the data source that the file belongs to

    anyOf

    string