Appeal Contacts

Appeal Contacts Documentation

Appeal Contact [LIST]

Appeal Contact [LIST]

Request

Endpoint

GET /api/v2/appeals/b78ba856-75b2-4f70-ab80-cc1d98bae2f5/appeal_contacts
Content-Type: application/vnd.api+json

Body

Parameters

Sorts

contact.name

Type Unknown

Description Sort by contact name

Required No

Filters

pledged_to_appeal

Type boolean

Description Filter if contact has pledged to appeal; Accepts value "true" or "false"'

Required No

Response

Headers

Content-Type: application/vnd.api+json; charset=utf-8
200 OK

Body

{
  "data": [
    {
      "id": "f72bcb2e-e681-4bb7-bf29-4b7737331ef6",
      "type": "appeal_contacts",
      "attributes": {
        "created_at": "2021-11-23T14:37:47Z",
        "updated_at": "2021-11-23T14:37:47Z",
        "updated_in_db_at": "2021-11-23T14:37:47Z"
      },
      "relationships": {
        "appeal": {
          "data": {
            "id": "b78ba856-75b2-4f70-ab80-cc1d98bae2f5",
            "type": "appeals"
          }
        },
        "contact": {
          "data": {
            "id": "9f894ea5-189b-4913-93cf-8654cd38d978",
            "type": "contacts"
          }
        }
      }
    }
  ],
  "meta": {
    "pagination": {
      "page": 1,
      "per_page": 25,
      "total_count": 1,
      "total_pages": 1
    },
    "sort": null,
    "filter": {
    }
  }
}

Fields

data

Type [Object]

Description An array of Objects

Appeal Contact [POST]

Appeal Contact [POST]

Request

Endpoint

POST /api/v2/appeals/4bfa358b-b4e8-42a4-a46d-4169e82c91a5/appeal_contacts
Content-Type: application/vnd.api+json

Body

{
  "data": {
    "type": "appeal_contacts",
    "attributes": {
    },
    "relationships": {
      "contact": {
        "data": {
          "type": "contacts",
          "id": "0a29c6c0-9a00-45d6-9acb-57ef9581eb67"
        }
      }
    }
  }
}

Parameters

Attributes

created_at

Type date

Description The timestamp of when this resource was created

Required No

updated_at

Type date

Description The timestamp of when this resource was last updated

Required No

updated_in_db_at

Type date

Description This is to be used as a reference for the last time the resource was updated in the remote database - specifically for when data is updated while the client is offline.

Required No

Relationships

appeal.data

Type Appeal

Description appeal relating to the contact

Required No

contact.data

Type Contact

Description contact relating to the appeal

Required No

Response

Headers

Content-Type: application/vnd.api+json; charset=utf-8
200 OK

Body

{
  "data": {
    "id": "26a7e730-5a10-4e7e-8cf5-fc725c0ecbfa",
    "type": "appeal_contacts",
    "attributes": {
      "created_at": "2021-11-23T14:37:47Z",
      "updated_at": "2021-11-23T14:37:47Z",
      "updated_in_db_at": "2021-11-23T14:37:47Z"
    },
    "relationships": {
      "appeal": {
        "data": {
          "id": "4bfa358b-b4e8-42a4-a46d-4169e82c91a5",
          "type": "appeals"
        }
      },
      "contact": {
        "data": {
          "id": "0a29c6c0-9a00-45d6-9acb-57ef9581eb67",
          "type": "contacts"
        }
      }
    }
  }
}

Fields

Attributes

created_at

Type date

Description The timestamp of when this resource was created

updated_at

Type date

Description The timestamp of when this resource was last updated

updated_in_db_at

Type date

Description This is to be used as a reference for the last time the resource was updated in the remote database - specifically for when data is updated while the client is offline.

Relationships

appeal.data

Type Appeal

Description appeal relating to the contact

contact.data

Type Contact

Description contact relating to the appeal

Appeal Contact [GET]

Appeal Contact [GET]

Request

Endpoint

GET /api/v2/appeals/78013a94-9760-4f98-a96d-b0189e63b7d3/appeal_contacts/887d3539-e63b-4818-9d00-47523634602d
Content-Type: application/vnd.api+json

Body

Response

Headers

Content-Type: application/vnd.api+json; charset=utf-8
200 OK

Body

{
  "data": {
    "id": "887d3539-e63b-4818-9d00-47523634602d",
    "type": "appeal_contacts",
    "attributes": {
      "created_at": "2021-11-23T14:37:47Z",
      "updated_at": "2021-11-23T14:37:47Z",
      "updated_in_db_at": "2021-11-23T14:37:47Z"
    },
    "relationships": {
      "appeal": {
        "data": {
          "id": "78013a94-9760-4f98-a96d-b0189e63b7d3",
          "type": "appeals"
        }
      },
      "contact": {
        "data": {
          "id": "3d9080c8-5a55-4224-b2c3-f53b5a8b7bbe",
          "type": "contacts"
        }
      }
    }
  }
}

Fields

Attributes

created_at

Type date

Description The timestamp of when this resource was created

updated_at

Type date

Description The timestamp of when this resource was last updated

updated_in_db_at

Type date

Description This is to be used as a reference for the last time the resource was updated in the remote database - specifically for when data is updated while the client is offline.

Relationships

appeal.data

Type Appeal

Description appeal relating to the contact

contact.data

Type Contact

Description contact relating to the appeal

Appeal Contact [DELETE]

Appeal Contact [DELETE]

Request

Endpoint

DELETE /api/v2/appeals/773a2131-16a3-4218-a4cb-526df2b4b56e/appeal_contacts/ad13c858-7874-46fa-8365-19b49857d513
Content-Type: application/vnd.api+json

Body

Response

Headers

204 No Content

Body

Last updated