v1

latestOpenAPI 3.1.02026-07-2483219318.4 KB
Datafiles

Create datafile

This endpoint creates a new datafile record in a pending state. Each datafile represents a single file, which needs to be uploaded shortly after datafile creation.

If the datafile is not uploaded before the expires_at timestamp included in the response, the record will be automatically deleted.

The datafile can be uploaded by making a PUT request to the upload_url provided in the response. Datafile have a maximum size of 200MB.

post/v1/applications/{applicationId}/datafiles

Path parameters

applicationIdstring required
Example:application_tz4a98xxat96iws9zmbrgj3a

Request body

namestring required

The filename of this datafile.

schemastring required

The name of the schema for this datafile.

content_type'application/json' required

The content type of the datafile.

Response

Success

_idstring required
expires_atstring date-time required
upload_urlstring uri required

Example response

{
  "_id": "dat_tz4a98xxat96iws9zmbrgj3a"
}