Skip to main content
PATCH
/
api
/
resources
/
{id}
Update Resource
curl --request PATCH \
  --url https://dash.empirical.run/api/resources/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "status": "<string>"
}
'
{
  "data": {
    "resource": {
      "id": 123,
      "name": "<string>",
      "url": "<string>",
      "description": "<string>",
      "mime_type": "<string>",
      "size_bytes": 123,
      "status": "pending",
      "access_level": "<string>",
      "created_by": "<string>",
      "created_at": "<string>",
      "updated_at": "<string>"
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.empirical.run/llms.txt

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

Authorizations

Authorization
string
header
required

API key from the Empirical dashboard.

Path Parameters

id
integer
required

File ID.

Required range: -9007199254740991 <= x <= 9007199254740991

Body

application/json

Fields to update.

name
string
description
string
status
string
Allowed value: "uploaded"

Response

Updated resource.

data
object
required