Skip to content

Organisations ​

Get all ​

Endpoint ​

sh
GET https://art.ayima.com/api/organisations

parameters ​

N/A

Response ​

json
{
    "data": [
        {
            "id": "...",
            "name": "...",
            "website": "...",
            "visible_to_client": "...",
            "keywords": "...",
            "teams": "...",
            "websites": "...",
            "competitors": "...",
            "is_favourite": "..."
        }
    ]
}

Get singular ​

Endpoint ​

sh
GET https://art.ayima.com/api/organisations/{organisationId}

Parameters ​

N/A

Response ​

json
{
    "data": {
        "id": "...",
        "name": "...",
        "website": "...",
        "visible_to_client": "...",
        "keywords": "...",
        "teams": "...",
        "websites": "...",
        "competitors": "...",
        "is_favourite": "..."
    }
}

Create ​

Endpoint ​

sh
POST https://art.ayima.com/api/organisations

parameters ​

nametypedescriptionrequired
nameStringThe name for the organisation you would like to create.✅
websiteStringThe website address that is based associated with the organisation. Please note this is not used for report creation- simply used to get metadata such as logo for the organisation.✅
visible_to_clientBooleanIndication if the organisation should be visible to clients.✅

Response ​

json
{
    "created": true,
    "uuid": "..."
}

Update ​

Endpoint ​

sh
PUT https://art.ayima.com/api/organisations/{organisationId}

parameters ​

nametypedescriptionrequired
nameStringThe name for the organisation you would like to create.✅
websiteStringThe website address that is based associated with the organisation. Please note this is not used for report creation- simply used to get metadata such as logo for the organisation.✅
visible_to_clientBooleanIndication if the organisation should be visible to clients.✅

Response ​

json
{
    "updated": true
}