Cancel Sharing
Cancel files or folders sharing.
Endpoint
http
DELETE /api/v1/share/{token}Parameters
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
token | string | yes | - |
Body parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
tokens | array | yes | The array of the share tokens to delete |
Request example
sh
curl --location --request DELETE 'https://files.ro/api/v1/share/{token}' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {token}' \
--data-raw '{
"tokens": [
"WNFmojqjgoIjIFJv"
]
}'Response
json
{
"type": "success",
"message": "The share links was revoked successfully."
}json
{
"type": "error",
"message": "You are not authorized"
}json
{
"message": "The given data was invalid.",
"errors": {
"field": [
"The field is required."
]
}
}