Appearance
Annotations
Annotations in the ART system can be created and set against a specific organisation, specific organisational team or globally.
Global Annotations
Get global annotations
Endpoint
sh
GET https://art.ayima.com/api/annotationsparameters
| name | type | description | required |
|---|---|---|---|
| size | Integer | The number of annotations to show on each page | 🚫 |
| col | String | The column to use for sorting. Options are: 'title', 'description', 'date', 'type', 'is_priority', show_in_mi', 'show_in_ranking', 'show_in_url' and 'show_in_distribution' | 🚫 |
| col_order_dir | Boolean | If true, sorts data ascendingly, otherwise descendingly | 🚫 |
| from | Date | The start date range for result data | 🚫 |
| to | String | The end date range for result data | 🚫 |
| page | Integer | The current results pages being viewed | 🚫 |
Response
json
{
"data": [
{
"id": "...",
"ico": "...",
"type": "...",
"title": "...",
"description": "...",
"description_raw": "...",
"type_raw": "...",
"date": "...",
"is_global": "...",
"is_priority": "...",
"show_in_mi": "...",
"show_in_ranking": "...",
"show_in_url": "...",
"show_in_distribution": "...",
"created_at": "..."
}
],
"meta": {
"pagination": {
"total": "...",
"count": "...",
"per_page": "...",
"current_page": "...",
"total_pages": "...",
"links": {
"previous": "...",
"next": "..."
}
}
}
}Create global annotation
Endpoint
sh
POST https://art.ayima.com/api/annotationsparameters
| name | type | description | required |
|---|---|---|---|
| date | Integer | The date of the annotation event. | ✅ |
| type | String | The annotation event type. Options are 'GOOGLE_ALGORITHM', 'COMMENT', 'LINK_BUILT' and 'WEBSITE_UPDATE' | ✅ |
| title | String | The title for the annotation | ✅ |
| description | String | The description for the annotation | ✅ |
| visibility | Array | An array indication for which charts the annotation will be visible. Accepts one or more options of 'mi', 'ranking', 'url' and 'distribution' (competitor landscape, ranking position, URL anaylsis and Distribution respectively) | ✅ |
Response
json
{
"created": true
}Update global annotation
Endpoint
sh
PUT https://art.ayima.com/api/annotations/{annotationId}parameters
| name | type | description | required |
|---|---|---|---|
| date | Integer | The date of the annotation event. | ✅ |
| type | String | The annotation event type. Options are 'GOOGLE_ALGORITHM', 'COMMENT', 'LINK_BUILT' and 'WEBSITE_UPDATE' | ✅ |
| title | String | The title for the annotation | ✅ |
| description | String | The description for the annotation | ✅ |
| visibility | Array | An array indication for which charts the annotation will be visible. Accepts one or more options of 'mi', 'ranking', 'url' and 'distribution' (competitor landscape, ranking position, URL anaylsis and Distribution respectively) | ✅ |
Response
json
{
"updated": true
}Delete global annotation
Endpoint
sh
DELETE https://art.ayima.com/api/annotations/{annotationId}parameters
N/A
Response
json
{
"deleted": true
}Organisation annotations
Get organisation annotation
Endpoint
sh
GET https://art.ayima.com/api/organisations/{organisationId}/annotationsparameters
| name | type | description | required |
|---|---|---|---|
| size | Integer | The number of annotations to show on each page | 🚫 |
| col | String | The column to use for sorting. Options are: 'title', 'description', 'date', 'type', 'is_priority', show_in_mi', 'show_in_ranking', 'show_in_url' and 'show_in_distribution' | 🚫 |
| col_order_dir | Boolean | If true, sorts data ascendingly, otherwise descendingly | 🚫 |
| from | Date | The start date range for result data | 🚫 |
| to | String | The end date range for result data | 🚫 |
| page | Integer | The current results pages being viewed | 🚫 |
Response
json
{
"data": [
{
"id": "...",
"ico": "...",
"type": "...",
"title": "...",
"description": "...",
"description_raw": "...",
"type_raw": "...",
"date": "...",
"is_global": "...",
"is_priority": "...",
"show_in_mi": "...",
"show_in_ranking": "...",
"show_in_url": "...",
"show_in_distribution": "...",
"created_at": "..."
}
],
"meta": {
"pagination": {
"total": "...",
"count": "...",
"per_page": "...",
"current_page": "...",
"total_pages": "...",
"links": {
"previous": "...",
"next": "..."
}
}
}
}Create organisation annotation
Endpoint
sh
POST https://art.ayima.com/api/organisations/{organisationId}/annotationsparameters
| name | type | description | required |
|---|---|---|---|
| date | Integer | The date of the annotation event. | ✅ |
| type | String | The annotation event type. Options are 'GOOGLE_ALGORITHM', 'COMMENT', 'LINK_BUILT' and 'WEBSITE_UPDATE' | ✅ |
| title | String | The title for the annotation | ✅ |
| description | String | The description for the annotation | ✅ |
| visibility | Array | An array indication for which charts the annotation will be visible. Accepts one or more options of 'mi', 'ranking', 'url' and 'distribution' (competitor landscape, ranking position, URL anaylsis and Distribution respectively) | ✅ |
Response
json
{
"created": true
}Update organisation annotation
Endpoint
sh
PUT https://art.ayima.com/api/organisations/{organisationId}/annotations/{annotationId}parameters
| name | type | description | required |
|---|---|---|---|
| date | Integer | The date of the annotation event. | ✅ |
| type | String | The annotation event type. Options are 'GOOGLE_ALGORITHM', 'COMMENT', 'LINK_BUILT' and 'WEBSITE_UPDATE' | ✅ |
| title | String | The title for the annotation | ✅ |
| description | String | The description for the annotation | ✅ |
| visibility | Array | An array indication for which charts the annotation will be visible. Accepts one or more options of 'mi', 'ranking', 'url' and 'distribution' (competitor landscape, ranking position, URL anaylsis and Distribution respectively) | ✅ |
Response
json
{
"updated": true
}Delete organisation annotation
Endpoint
sh
DELETE https://art.ayima.com/api/organisations/{organisationId}/annotations/{annotationId}parameters
N/A
Response
json
{
"deleted": true
}Organisation team annotations
Get organisation team annotations
Endpoint
sh
GET https://art.ayima.com/api/organisations/{organisationId}/teams/{teamId}/annotationsparameters
| name | type | description | required |
|---|---|---|---|
| size | Integer | The number of annotations to show on each page | 🚫 |
| col | String | The column to use for sorting. Options are: 'title', 'description', 'date', 'type', 'is_priority', show_in_mi', 'show_in_ranking', 'show_in_url' and 'show_in_distribution' | 🚫 |
| col_order_dir | Boolean | If true, sorts data ascendingly, otherwise descendingly | 🚫 |
| from | Date | The start date range for result data | 🚫 |
| to | String | The end date range for result data | 🚫 |
| page | Integer | The current results pages being viewed | 🚫 |
Response
json
{
"data": [
{
"id": "...",
"ico": "...",
"type": "...",
"title": "...",
"description": "...",
"description_raw": "...",
"type_raw": "...",
"date": "...",
"is_global": "...",
"is_priority": "...",
"show_in_mi": "...",
"show_in_ranking": "...",
"show_in_url": "...",
"show_in_distribution": "...",
"created_at": "..."
}
],
"meta": {
"pagination": {
"total": "...",
"count": "...",
"per_page": "...",
"current_page": "...",
"total_pages": "...",
"links": {
"previous": "...",
"next": "..."
}
}
}
}Create organisation team annotation
Endpoint
sh
POST https://art.ayima.com/api/organisations/{organisationId}/teams/{teamId}/annotationsparameters
| name | type | description | required |
|---|---|---|---|
| date | Integer | The date of the annotation event. | ✅ |
| type | String | The annotation event type. Options are 'GOOGLE_ALGORITHM', 'COMMENT', 'LINK_BUILT' and 'WEBSITE_UPDATE' | ✅ |
| title | String | The title for the annotation | ✅ |
| description | String | The description for the annotation | ✅ |
| visibility | Array | An array indication for which charts the annotation will be visible. Accepts one or more options of 'mi', 'ranking', 'url' and 'distribution' (competitor landscape, ranking position, URL anaylsis and Distribution respectively) | ✅ |
Response
json
{
"created": true
}Update organisation team annotation
Endpoint
sh
PUT https://art.ayima.com/api/organisations/{organisationId}/teams/{teamId}/annotations/{annotationId}parameters
| name | type | description | required |
|---|---|---|---|
| date | Integer | The date of the annotation event. | ✅ |
| type | String | The annotation event type. Options are 'GOOGLE_ALGORITHM', 'COMMENT', 'LINK_BUILT' and 'WEBSITE_UPDATE' | ✅ |
| title | String | The title for the annotation | ✅ |
| description | String | The description for the annotation | ✅ |
| visibility | Array | An array indication for which charts the annotation will be visible. Accepts one or more options of 'mi', 'ranking', 'url' and 'distribution' (competitor landscape, ranking position, URL anaylsis and Distribution respectively) | ✅ |
Response
json
{
"updated": true
}Delete organisation team annotation
Endpoint
sh
DELETE https://art.ayima.com/api/organisations/{organisationId}/teams/{teamId}/annotations/{annotationId}parameters
N/A
Response
json
{
"deleted": true
}