Appstore

These APIs relate to installing and uninstalling apps.

App relations collection

GET

Retrieve list of app relations

GET /orgs/{org_pk}/appstore/app-relations/

Example request:

curl -iL --request GET "https://www.readycloud.com/api/v2/orgs/1/appstore/app-relations/?bearer_token=4ef5b29b1f4f35c383bebfccf4bf4d01"

Response 200 (application/json):

{
    "count": 1,
    "next": null,
    "previous": null,
    "results": [
        {
            "access_token": "4ef5b29b1f4f35c383bebfccf4bf4d01",
            "app_name": "Shopify integration",
            "created_at": "2015-08-13T09:33:07Z",
            "is_configured": true,
            "name": null,
            "updated_at": "2015-08-13T09:33:07Z",
            "url": "/api/v2/orgs/1/appstore/app-relations/4ef5b29b1f4f35c383bebfccf4bf4d01/"
        }
    ]
}

App relations

GET

Retrieve app relations details

GET /orgs/{org_pk}/appstore/app-relations/{access_token}/

Example request:

curl -iL --request GET "https://www.readycloud.com/api/v2/orgs/1/appstore/app-relations/2294c6d60bac4eb8be75692cf2432620/?bearer_token=4ef5b29b1f4f35c383bebfccf4bf4d01"

Response 200 (application/json):

{
    "access_token": "4ef5b29b1f4f35c383bebfccf4bf4d01",
    "app_name": "Shopify integration",
    "created_at": "2015-08-13T09:33:07Z",
    "is_configured": true,
    "name": null,
    "updated_at": "2015-08-13T09:33:07Z",
    "url": "/api/v2/orgs/1/appstore/app-relations/4ef5b29b1f4f35c383bebfccf4bf4d01/"
}

PATCH

Update app relations details

PATCH /orgs/{org_pk}/appstore/app-relations/{access_token}/

Example request:

curl -iL --request PATCH -H "Content-Type: application/json" --upload-file data.json "https://www.readycloud.com/api/v2/orgs/1/appstore/app-relations/2294c6d60bac4eb8be75692cf2432620/?bearer_token=4ef5b29b1f4f35c383bebfccf4bf4d01"

data.json:

{
    "name": "My shopify integration"
}

Response 200 (application/json):

{
    "access_token": "4ef5b29b1f4f35c383bebfccf4bf4d01",
    "app_name": "Shopify integration",
    "created_at": "2015-08-13T09:33:07Z",
    "is_configured": true,
    "name": "My shopify integration",
    "updated_at": "2015-08-13T09:33:07Z",
    "url": "/api/v2/orgs/1/appstore/app-relations/4ef5b29b1f4f35c383bebfccf4bf4d01/"
}