Files

Create files

POST
Returns 201 if successful

Request

This endpoint expects a list of objects.
file
objectRequired
File details
attributes
list of objectsOptional
List of Attributes

Response

This endpoint returns a list of objects
file
object
File details
attributes
list of objectsOptional
List of Attributes
POST
$curl -X POST https://api.hume.ai/v0/registry/files \
> -H "X-Hume-Api-Key: <apiKey>" \
> -H "Content-Type: application/json" \
> -d '[
> {
> "file": {
> "name": "name",
> "hume_storage": true,
> "data_type": "data_type"
> }
> }
>]'
Response
1[
2 {
3 "file": {
4 "id": "id",
5 "user_id": "user_id",
6 "data_type": "data_type",
7 "is_sanitized": true,
8 "is_owned_by_reader": true,
9 "name": "name",
10 "uri": "uri",
11 "upload_uri": "upload_uri",
12 "thumbnail_uri": "thumbnail_uri",
13 "created_on": 1,
14 "modified_on": 1,
15 "metadata": {
16 "metadata": {}
17 },
18 "hume_storage": true,
19 "hume_storage_upload_timestamp": 1,
20 "is_linked_to_publicly_shared": true,
21 "is_linked_to_hume_model": true
22 },
23 "attributes": [
24 {
25 "name": "name",
26 "value": "value"
27 }
28 ]
29 }
30]