curl --request PATCH \
--url https://api.eda.prisme.ai/v2/workspaces/{workspaceId}/files/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--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>"
}
]
Update file
curl --request PATCH \
--url https://api.eda.prisme.ai/v2/workspaces/{workspaceId}/files/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--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>"
}
]
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Success Response
The response is of type object[]
.
Was this page helpful?