Skip to main content

File Upload - Simple

POST 

/api/inspect/v1/file/upload/simple

This endpoint allows users to upload files smaller than 5MB directly to the cloud. It is suitable for simple file uploads that don’t involve large files or multiple files in one request. The uploaded file can be any supported file type and is processed immediately after upload. Ensure that the file size does not exceed the 5MB limit.

Request

Query Parameters

    assetID uuidrequired

    The unique identifier (UUID) of the asset to which the uploaded file is associated. This parameter ensures that the file is linked to a specific asset for further processing or retrieval.

    size int64required

    The size of the file being uploaded, in bytes. This value helps ensure that the file does not exceed the 5MB limit and can be processed by the cloud service.

Body

    file binaryrequired

    The actual binary content of the file to be uploaded. Ensure that the file size is less than 5MB for successful processing.

Responses

201 Created. The file was successfully uploaded. The response includes the following data:

Schema

    data

    Details of the uploaded file.

    id uuid

    The unique identifier (UUID) assigned to the uploaded file. This can be used to reference the file in future operations, such as creating spot attachment or marking it as fully uploaded or retrieving it later.

Loading...