Skip to content

Organisation websites

Get all

Endpoint

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

parameters

N/A

Response

json
{
    "data": [
        {
            "id": "...",
            "name": "...",
            "url": "...",
            "host": "...",
            "domain": "...",
            "is_competitor": "...",
            "reports": "...",
            "created_at": "..."
        }
    ]
}

Get singular

Endpoint

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

Parameters

N/A

Response

json
{
    "data": {
        "id": "...",
        "name": "...",
        "url": "...",
        "host": "...",
        "domain": "...",
        "is_competitor": "...",
        "reports": "...",
        "created_at": "..."
    }
}

Create

Endpoint

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

parameters

nametypedescriptionrequired
nameStringThe name for the website you would like to create.
websiteStringThe full website address.
is_competitorBooleanIndication if the website should be associated as a competitor.

Response

json
{
    "created": true
}

Update

Endpoint

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

parameters

nametypedescriptionrequired
nameStringThe name for the website you would like to create.
websiteStringThe full website address.
is_competitorBooleanIndication if the website should be associated as a competitor.

Response

json
{
    "updated": true
}

Delete

Endpoint

sh
DELETE https://art.ayima.com/api/organisations//{organisationId}/website/{websiteId}

parameters

N/A

Response

json
{
    "deleted": true
}