PATCH
/
v2
/
workspaces
/
{workspaceId}
/
files
/
{id}
curl --request PATCH \
  --url https://api.eda.prisme.ai/v2/workspaces/{workspaceId}/files/{id} \
  --header 'Content-Type: application/json' \
  --header 'X-Prismeai-API-Key: <api-key>' \
  --data '{
  "expiresAfter": "<string>",
  "public": "<string>",
  "shareToken": "<string>",
  "metadata": {}
}'
[
  {
    "name": "<string>",
    "url": "<string>",
    "mimetype": "<string>",
    "size": 123,
    "workspaceId": "<string>",
    "path": "<string>",
    "expiresAt": "<string>",
    "expiresAfter": 123,
    "metadata": {},
    "public": true,
    "shareToken": "<string>"
  }
]

Authorizations

X-Prismeai-API-Key
string
header
required
connect.sid
string
cookie
required

Path Parameters

workspaceId
string
required

Workspace id

id
string
required

File id

Body

application/json

Response

200
application/json

Success Response

The response is of type object[].