Onedata API Reference

REST API references for Onezone, Oneprovider, and Onepanel.

Set file rdf metadata by Id (deprecated) Deprecated

PUT /metadata-id/rdf/{id}

This enpoint is deprecated, please use this one.

This method allows to set specific rdf metadata for a file, directory or space specified by Id 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-id/rdf/$FILE_ID

Path parameters

Parameter Type & Description
id required
string

Id of the file.

Request body

application/rdf+xml

The rdf metadata.

No schema provided.

Request Examples

Shell
cat metadata.rdf | oneprovider-rest-cli setFileRdfMetadataById id=$FILE_ID -

Responses

application/json
204

Rdf metadata updated successfully.

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

File 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."
}