Onedata API Reference

REST API references for Onezone, Oneprovider, and Onepanel.

Remove share

DELETE /shares/{shid}

Removes a specific share. This operation will not remove data from shared file or directory but it will not be accessible through public url anymore.

Example cURL requests

Removes share

curl -X DELETE -H "X-Auth-Token: $TOKEN" \
"https://$HOST/api/v3/oneprovider/shares/$SHARE_ID"

Path parameters

Parameter Type & Description
shid required
string

Share Id (e.g. '1f4b762b1380946e73aeca574c77f14c')

Request Examples

Shell
oneprovider-rest-cli removeShare shid=$SHARE_ID

Responses

application/json
204

Share has been removed.

400

Invalid request.

PropertyType & Description
error
string

Identifier representing internal error code.

error_description
string

Detailed error message.

Example

application/json
{
  "error": "invalid_token",
  "error_description": "Provided token could not be validated."
}
403

Forbidden request.

PropertyType & Description
error
string

Identifier representing internal error code.

error_description
string

Detailed error message.

Example

application/json
{
  "error": "invalid_token",
  "error_description": "Provided token could not be validated."
}
404

Share not found.

PropertyType & Description
error
string

Identifier representing internal error code.

error_description
string

Detailed error message.

Example

application/json
{
  "error": "invalid_token",
  "error_description": "Provided token could not be validated."
}
500

Internal server error.

PropertyType & Description
error
string

Identifier representing internal error code.

error_description
string

Detailed error message.

Example

application/json
{
  "error": "invalid_token",
  "error_description": "Provided token could not be validated."
}