Remove file xattrs
DELETE /data/{id}/metadata/xattrs
Removes specific xattrs from the file specified by $FILE_ID.
Example cURL requests
Remove specific file xattrs
curl -H "X-Auth-Token: $TOKEN" \
-X DELETE https://$HOST/api/v3/oneprovider/data/$FILE_ID/metadata/xattrs \
-H 'Content-Type: application/json' -d '{ "keys": ["license"] }'
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string Id of the file. |
Request body
The xattrs to remove.
Property
Type & Description
keys
array of strings
List of xattrs to remove.
Request Examples
Shell
oneprovider-rest-cli removeXattrs id=$FILE_ID keys=='["license"]'Responses
application/json
204
Specific file xattrs has been removed.
400
Invalid request.
Property
Type & 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.
Property
Type & 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
File not found.
Property
Type & 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.
Property
Type & 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."
}