/file - Uploads a file to a record (non-template version)

View as Markdown

POST a file to add a file.

If request has an image or file uuid, that file will be replaced.

If the request has an empty file_uuid, the post body must include the file or image field UUID and the resulting file will be added to that field or will replace if an existing file is present (when the field is set to single upload only).

Request

This endpoint expects a multipart form containing a file.
namestringRequired
filefileRequired
dataset_uuidstringRequired
template_field_uuidstringRequired
user_emailstringRequired
field_uuidstringRequired
record_uuidstringRequired

Response headers

Access-Control-Allow-OriginstringOptional
Access-Control-Allow-MethodsstringOptional
Access-Control-Allow-HeadersstringOptional
Access-Control-Expose-HeadersstringOptional
Access-Control-Max-AgestringOptional
Cache-ControlstringOptional
X-Debug-TokenstringOptional
Keep-AlivestringOptional

Response

OK
database_uuidstring
internal_idinteger
record_nameinteger
record_uuidstring
template_uuidstring
metadata_for_uuidstring
_record_metadataobject
fieldslist of objects
recordslist of objects