Skip to main content
PUT
/
v2
/
workspaces
/
{workspaceId}
/
files
/
{id}
cURL
curl --request PUT \
  --url https://api.eda.prisme.ai/v2/workspaces/{workspaceId}/files/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file'
{
  "name": "<string>",
  "url": "<string>",
  "mimetype": "<string>",
  "size": 123,
  "workspaceId": "<string>",
  "path": "<string>",
  "id": "<string>",
  "expiresAt": "<string>",
  "expiresAfter": 123,
  "metadata": {},
  "public": true,
  "shareToken": "<string>",
  "orgSlug": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.prisme.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.

Path Parameters

workspaceId
string
required

Workspace id

id
string
required

File id

Body

multipart/form-data
file
file
required

The new file content to replace the existing one

Response

Success Response

name
string
required
url
string
required
mimetype
string
required
size
number
required
workspaceId
string
required
path
string
required
id
string
expiresAt
string
expiresAfter
number

Number of seconds after which the file will be automatically removed. This is currently a best effort expiration as it will be deleted only upon the next restart after expiration date.

metadata
object
public
boolean

Reflects whether the file has public-read ACL at storage provider. True by default

shareToken
string

A share token to append as a ?token query parameter to grant read access with given url

orgSlug
string | null

Organization slug set at creation time