{
"opencollection": "1.0.0",
"info": {
"name": "Cintoo Open Account Annotation API",
"version": "2.0.0"
},
"request": {
"auth": {
"type": "oauth2",
"flow": "authorization_code",
"authorizationUrl": "https://aec.cintoo.com/oauth/authorize",
"accessTokenUrl": "https://aec.cintoo.com/oauth/token",
"credentials": {
"clientId": "{{clientId}}",
"clientSecret": "{{clientSecret}}"
}
}
},
"items": [
{
"info": {
"name": "Annotation",
"type": "folder"
},
"items": [
{
"info": {
"name": "List annotations in a project",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://aec.cintoo.com/api/2/accounts/:accountRef/projects/:projectRef/annotations",
"params": [
{
"name": "accountRef",
"value": "",
"type": "path",
"description": "The Id or Urn of the account"
},
{
"name": "projectRef",
"value": "",
"type": "path",
"description": "The Id or Urn of the project"
},
{
"name": "includeComments",
"value": "",
"type": "query",
"description": "If true the operation retrieves comments attached to each annotation,\nelse the comments field will not be returned.\n"
},
{
"name": "includeAttachments",
"value": "",
"type": "query",
"description": "If true the operation retrieves information about files attached to each annotation or comment,\nelse the attachments field will not be returned.\n"
}
]
},
"docs": "BETAList all annotations in a project\n\nOnly annotations on work zones where the user has the permission `workzone:annotations:read` are returned.\n"
},
{
"info": {
"name": "Create an annotation",
"type": "http"
},
"http": {
"method": "POST",
"url": "https://aec.cintoo.com/api/2/accounts/:accountRef/projects/:projectRef/annotations",
"params": [
{
"name": "accountRef",
"value": "",
"type": "path",
"description": "The Id or Urn of the account"
},
{
"name": "projectRef",
"value": "",
"type": "path",
"description": "The Id or Urn of the project"
}
],
"body": {
"type": "json",
"data": "{}"
}
},
"docs": "BETACreate an annotation\n\nRequires the permission `workzone:annotations:write` on the work zone.\n\nA maximum of 3000 annotations are allowed on the same project. If this limit is reached, an error 400 with\nerror code `project-max-annotations` is returned.\n"
},
{
"info": {
"name": "Get annotation",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://aec.cintoo.com/api/2/accounts/:accountRef/projects/:projectRef/annotations/:annotationRef",
"params": [
{
"name": "accountRef",
"value": "",
"type": "path",
"description": "The Id or Urn of the account"
},
{
"name": "projectRef",
"value": "",
"type": "path",
"description": "The Id or Urn of the project"
},
{
"name": "annotationRef",
"value": "",
"type": "path",
"description": "The Id or Urn of the annotation"
},
{
"name": "includeComments",
"value": "",
"type": "query",
"description": "If true the operation retrieves comments attached to each annotation,\nelse the comments field will not be returned.\n"
},
{
"name": "includeAttachments",
"value": "",
"type": "query",
"description": "If true the operation retrieves information about files attached to each annotation or comment,\nelse the attachments field will not be returned.\n"
}
]
},
"docs": "BETARetrieve an annotation, optionally with comments and attachments\n\nRequires the permission `workzone:annotations:read` on the work zone where the annotation is.\n"
},
{
"info": {
"name": "Update an annotation",
"type": "http"
},
"http": {
"method": "PUT",
"url": "https://aec.cintoo.com/api/2/accounts/:accountRef/projects/:projectRef/annotations/:annotationRef",
"params": [
{
"name": "accountRef",
"value": "",
"type": "path",
"description": "The Id or Urn of the account"
},
{
"name": "projectRef",
"value": "",
"type": "path",
"description": "The Id or Urn of the project"
},
{
"name": "annotationRef",
"value": "",
"type": "path",
"description": "The Id or Urn of the annotation"
}
],
"body": {
"type": "json",
"data": "{}"
}
},
"docs": "BETAUpdate an annotation\n\n⚠ Overwrites all fields. Missing fields will be considered as null and current values will be erased\n\nRequires the permission `workzone:annotations:write` on the work zone.\n"
},
{
"info": {
"name": "Delete an annotation",
"type": "http"
},
"http": {
"method": "DELETE",
"url": "https://aec.cintoo.com/api/2/accounts/:accountRef/projects/:projectRef/annotations/:annotationRef",
"params": [
{
"name": "accountRef",
"value": "",
"type": "path",
"description": "The Id or Urn of the account"
},
{
"name": "projectRef",
"value": "",
"type": "path",
"description": "The Id or Urn of the project"
},
{
"name": "annotationRef",
"value": "",
"type": "path",
"description": "The Id or Urn of the annotation"
}
]
},
"docs": "BETADelete an annotation\n\nRequires the permission `workzone:annotations:write` on the work zone.\n"
},
{
"info": {
"name": "Create a comment on an annotation",
"type": "http"
},
"http": {
"method": "POST",
"url": "https://aec.cintoo.com/api/2/accounts/:accountRef/projects/:projectRef/annotations/:annotationRef/comments",
"params": [
{
"name": "accountRef",
"value": "",
"type": "path",
"description": "The Id or Urn of the account"
},
{
"name": "projectRef",
"value": "",
"type": "path",
"description": "The Id or Urn of the project"
},
{
"name": "annotationRef",
"value": "",
"type": "path",
"description": "The Id or Urn of the annotation"
}
],
"body": {
"type": "json",
"data": "{}"
}
},
"docs": "BETACreate a comment on an annotation\n\nRequires the permission `workzone:annotations:write` on the work zone.\n"
}
]
}
],
"bundled": true
}