Update references

This API is responsible for updating an annotation`s references.

[PUT]/api/v1/annotations/{id}/{operation}

Response: The id of the updated annotation.

Header

Header used on this API are those taken from header standards of TS Digital.

Content-type is accepted in application/json

Query Parameters

Parameters used to make a successful request.

Body

{
  "reference_ids": [
    "string"
  ]
}

Response

On successful response

If successful, the API responds with HTTP code 200(OK) with the following body:

{
  "id": "string"
}
On error response

In the event of an error, the API responds with a body JSON with the following format:

{
  "code": "string",
  "timestamp": "2022-10-28T13:01:00.754Z",
  "message": "string",
  "subErrors": [
    {}
  ]
}

Possible errors are:


Revision #2
Created 2022-10-31 14:06:53 UTC by Endri Qejvanaj
Updated 2023-01-10 13:34:29 UTC by Endri Qejvanaj