Skip to main content
PUT
/
v1
/
resource
/
{id}
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "account_id": "<string>",
  "name": "<string>",
  "directory_path": "<string>",
  "mime_type": "<string>",
  "sha256": "<string>",
  "original_uri": "<string>",
  "external_id": "<string>",
  "external_storage_type": "s3",
  "storage_bucket": "<string>",
  "storage_key": "<string>",
  "size_bytes": 123,
  "tags": [
    "<string>"
  ],
  "metadata": {},
  "created_by": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string<uuid>
required

The ID of the resource to update

Body

application/json
name
string

New name for the resource

directory_path
string

New directory path for the resource

metadata
object

Updated metadata for the resource

Response

OK

id
string<uuid>
required

Unique identifier for the resource

account_id
string
required

ID of the account that owns this resource

name
string
required

Name of the resource

directory_path
string
required

Path to the directory containing the resource

mime_type
string
required

MIME type of the resource

sha256
string
required

SHA256 hash of the resource content

storage_bucket
string
required

Storage bucket where the resource is stored

storage_key
string
required

Key for artifact storage in the storage system

size_bytes
integer
required

Size of the resource in bytes

created_at
string<date-time>
required

Timestamp when the resource was created

updated_at
string<date-time>
required

Timestamp when the resource was last updated

original_uri
string | null

Original URI of the resource, if applicable

external_id
string | null

External identifier for the resource, if applicable

external_storage_type
enum<string>

Type of external storage, if applicable

Available options:
s3,
gcs,
azure_blob
tags
string[]

List of tags associated with the resource. While stored in a separate table, this field represents the joined data.

metadata
object | null

Additional metadata associated with the resource

created_by
string | null

ID of the user who created the resource

I