Skip to content

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/annotations

parameters

nametypedescriptionrequired
sizeIntegerThe number of annotations to show on each page🚫
colStringThe 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_dirBooleanIf true, sorts data ascendingly, otherwise descendingly🚫
fromDateThe start date range for result data🚫
toStringThe end date range for result data🚫
pageIntegerThe 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/annotations

parameters

nametypedescriptionrequired
dateIntegerThe date of the annotation event.
typeStringThe annotation event type. Options are 'GOOGLE_ALGORITHM', 'COMMENT', 'LINK_BUILT' and 'WEBSITE_UPDATE'
titleStringThe title for the annotation
descriptionStringThe description for the annotation
visibilityArrayAn 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

nametypedescriptionrequired
dateIntegerThe date of the annotation event.
typeStringThe annotation event type. Options are 'GOOGLE_ALGORITHM', 'COMMENT', 'LINK_BUILT' and 'WEBSITE_UPDATE'
titleStringThe title for the annotation
descriptionStringThe description for the annotation
visibilityArrayAn 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}/annotations

parameters

nametypedescriptionrequired
sizeIntegerThe number of annotations to show on each page🚫
colStringThe 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_dirBooleanIf true, sorts data ascendingly, otherwise descendingly🚫
fromDateThe start date range for result data🚫
toStringThe end date range for result data🚫
pageIntegerThe 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}/annotations

parameters

nametypedescriptionrequired
dateIntegerThe date of the annotation event.
typeStringThe annotation event type. Options are 'GOOGLE_ALGORITHM', 'COMMENT', 'LINK_BUILT' and 'WEBSITE_UPDATE'
titleStringThe title for the annotation
descriptionStringThe description for the annotation
visibilityArrayAn 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

nametypedescriptionrequired
dateIntegerThe date of the annotation event.
typeStringThe annotation event type. Options are 'GOOGLE_ALGORITHM', 'COMMENT', 'LINK_BUILT' and 'WEBSITE_UPDATE'
titleStringThe title for the annotation
descriptionStringThe description for the annotation
visibilityArrayAn 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}/annotations

parameters

nametypedescriptionrequired
sizeIntegerThe number of annotations to show on each page🚫
colStringThe 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_dirBooleanIf true, sorts data ascendingly, otherwise descendingly🚫
fromDateThe start date range for result data🚫
toStringThe end date range for result data🚫
pageIntegerThe 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}/annotations

parameters

nametypedescriptionrequired
dateIntegerThe date of the annotation event.
typeStringThe annotation event type. Options are 'GOOGLE_ALGORITHM', 'COMMENT', 'LINK_BUILT' and 'WEBSITE_UPDATE'
titleStringThe title for the annotation
descriptionStringThe description for the annotation
visibilityArrayAn 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

nametypedescriptionrequired
dateIntegerThe date of the annotation event.
typeStringThe annotation event type. Options are 'GOOGLE_ALGORITHM', 'COMMENT', 'LINK_BUILT' and 'WEBSITE_UPDATE'
titleStringThe title for the annotation
descriptionStringThe description for the annotation
visibilityArrayAn 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
 }