Set file rdf metadata (deprecated) Deprecated
This enpoint is deprecated, please use this one.
This method allows to set specific rdf metadata for a file, directory or space specified in the request path.
This operation will replace the previous rdf metadata if any.
Example cURL requests
Set RDF metadata for space from RDF file
curl -H "X-Auth-Token: $TOKEN" -X PUT \
-H "Content-type: application/rdf+xml" \
-d "@./space1_dublincore.rdf"
https://$HOST/api/v3/oneprovider/metadata/rdf/MySpace1
Path parameters
| Parameter | Type & Description |
|---|---|
| path required | string File or directory path or space name (e.g. '/MySpace/testfiles/file1.txt') |
Request body
The rdf metadata.
No schema provided.
Request Examples
cat metadata.rdf | oneprovider-rest-cli setFileRdfMetadata path='/MySpace/testfiles/file1.txt' -Responses
Rdf metadata updated successfully.
Invalid request.
| Property | Type & Description |
|---|---|
error string Identifier representing internal error code. | |
error_description string Detailed error message. | |
Example
{
"error": "invalid_token",
"error_description": "Provided token could not be validated."
}Forbidden request.
| Property | Type & Description |
|---|---|
error string Identifier representing internal error code. | |
error_description string Detailed error message. | |
Example
{
"error": "invalid_token",
"error_description": "Provided token could not be validated."
}File not found.
| Property | Type & Description |
|---|---|
error string Identifier representing internal error code. | |
error_description string Detailed error message. | |
Example
{
"error": "invalid_token",
"error_description": "Provided token could not be validated."
}Internal server error.
| Property | Type & Description |
|---|---|
error string Identifier representing internal error code. | |
error_description string Detailed error message. | |
Example
{
"error": "invalid_token",
"error_description": "Provided token could not be validated."
}