New: build custom CDF applications with Cognite Flows. Documentation · What's new.
const annotationIds = [{ id: 1 }, { id: 2 }];
await client.annotations.delete(annotationIds);{
"error": {
"code": 401,
"message": "Could not authenticate.",
"missing": [
{}
],
"duplicated": [
{}
]
}
}Required capabilities:
annotationsAcl:WRITE
Deletes the referenced annotations completely.
The caller must have read-access on all the annotated resources, otherwise the call will fail.
const annotationIds = [{ id: 1 }, { id: 2 }];
await client.annotations.delete(annotationIds);{
"error": {
"code": 401,
"message": "Could not authenticate.",
"missing": [
{}
],
"duplicated": [
{}
]
}
}Documentation Index
Fetch the complete documentation index at: https://docs.cognite.com/llms.txt
Use this file to discover all available pages before exploring further.
Access token issued by the CDF project's configured identity provider. Access token must be an OpenID Connect token, and the project must be configured to accept OpenID Connect tokens. Use a header key of 'Authorization' with a value of 'Bearer $accesstoken'. The token can be obtained through any flow supported by the identity provider.
A request referencing existing annotations
A list of existing annotation references
Show child attributes
Successful deletion
Was this page helpful?