Update annotation

This API is responsible for updating an annotation.

[PATCH]/api/v1/annotations/{id}

Response: The id of the updated annotation.

The update operation is only available to the user who created the 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

{
  "type": "string",
  "text": "string",
  "classification": "string",
  "ownership": {
    "type": "WS",
    "identifier": "string"
  },
  "referencing_date": "string",
  "reference_period": "string",
  "reference_type": "string",
  "reference_ids": [
    "string"
  ],
  "item_classifier": "string"
}

Each of the fields are optional; only the field included in the request will be updated on the database.

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:07:31 UTC by Endri Qejvanaj
Updated 2022-10-31 14:50:34 UTC by Endri Qejvanaj