Skip to main content
PUT
/
assets
/
files
/
{resource_uri}
Update File
curl --request PUT \
  --url https://api.example.com/assets/files/{resource_uri} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "tags": [
    "<string>"
  ]
}
'
{
  "resource_uri": "<string>",
  "name": "<string>",
  "key": "<string>",
  "organization_id": "<string>",
  "project_id": "<string>",
  "owner_id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "created_by": "<string>",
  "updated_by": "<string>",
  "type": "file",
  "content_type": "<string>",
  "size": 123,
  "description": "<string>",
  "tags": []
}

Documentation Index

Fetch the complete documentation index at: https://docs.emergence.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Project-ID
string | null

Path Parameters

resource_uri
string
required

File resource URI

Body

application/json

Request body for updating file metadata.

Note: resource_uri, key, content_type, and size cannot be changed.

name
string | null
Required string length: 1 - 255
description
string | null
Maximum string length: 1000
tags
string[] | null

Response

Successful Response

Full file representation.

resource_uri
string
required
name
string
required
key
string
required
organization_id
string
required
project_id
string
required
owner_id
string
required
deprecated

Deprecated: use created_by instead. Will be removed in a future release.

created_at
string<date-time>
required
updated_at
string<date-time>
required
created_by
string
required
updated_by
string
required
type
string
default:file
content_type
string | null
size
integer | null
description
string | null
tags
string[]