POST
/
v2
/
workspaces
/
{workspaceId}
/
files
/
{id}
/
share
curl --request POST \
  --url https://api.eda.prisme.ai/v2/workspaces/{workspaceId}/files/{id}/share \
  --header 'Content-Type: application/json' \
  --header 'X-Prismeai-API-Key: <api-key>' \
  --data '{
  "expiresIn": 123
}'
{
  "url": "<string>",
  "expiresAt": "<string>",
  "expiresIn": 123
}

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
expiresIn
number

Returned share url will expire in N seconds

Response

200
application/json
Success Response
url
string
expiresAt
string
expiresIn
number