curl --request POST \
--url https://api.eda.prisme.ai/v2/workspaces/{workspaceId}/files \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'expiresAfter=<string>' \
--form 'public=<string>' \
--form 'shareToken=<string>' \
--form file=@example-file
[
{
"name": "<string>",
"url": "<string>",
"mimetype": "<string>",
"size": 123,
"workspaceId": "<string>",
"path": "<string>",
"expiresAt": "<string>",
"expiresAfter": 123,
"metadata": {},
"public": true,
"shareToken": "<string>"
}
]
Upload one or more file(s)
curl --request POST \
--url https://api.eda.prisme.ai/v2/workspaces/{workspaceId}/files \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'expiresAfter=<string>' \
--form 'public=<string>' \
--form 'shareToken=<string>' \
--form file=@example-file
[
{
"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.
Workspace id
Success Response
The response is of type object[]
.
Was this page helpful?