Skip to main content

update-annotation

restish dci update-annotation id

Updates the annotation specified by the Id.

Request

Content-Type: application/json

Schema

{
"type": "object",
"properties": {
"content": {
"type": "string",
"description": "The content of the annotation",
"nullable": true
},
"timestamp": {
"type": "string",
"format": "date-time",
"description": "The date associated with the annotation",
"nullable": true
},
"reports": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of report IDs associated with the annotation",
"nullable": true
}
}
}

Responses

200 (application/json)

OK - Annotation updated.

{
"required": [
"id",
"content",
"timestamp"
],
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The unique identifier of the annotation"
},
"content": {
"type": "string",
"description": "The content of the annotation"
},
"timestamp": {
"type": "string",
"format": "date-time",
"description": "The date associated with the annotation"
},
"reports": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of report IDs associated with the annotation"
},
"createTime": {
"type": "string",
"format": "date-time",
"description": "The time when the annotation was created"
},
"updateTime": {
"type": "string",
"format": "date-time",
"description": "The time when the annotation was last updated"
}
}
}

400 (application/json)

Bad Request - The server cannot process the request, often due to a malformed request.

{
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}

401 (application/json)

Unauthorized - Invalid API key.

{
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}

403 (application/json)

Forbidden - The client is not authorized to perform the request.

{
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}

404 (application/json)

Not Found - The requested resource does not exist.

{
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}

Aliases: update-annotation, updateannotation