Relationships

Relationships Documentation

Relationship [LIST]

Relationship [LIST]

Request

Endpoint

GET /api/v2/contacts/a06f3ae7-49c8-4430-9b29-4e07fcfaadba/people/eea57f86-ce68-40e8-8e59-bd604480300d/relationships
Content-Type: application/vnd.api+json

Body

Response

Headers

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

Body

{
  "data": [
    {
      "id": "9a40b34e-b6b3-408b-a418-d07dc94b6f7a",
      "type": "family_relationships",
      "attributes": {
        "created_at": "2022-01-12T17:18:06Z",
        "relationship": "MyString",
        "updated_at": "2022-01-12T17:18:06Z",
        "updated_in_db_at": "2022-01-12T17:18:06Z"
      },
      "relationships": {
        "related_person": {
          "data": {
            "id": "abadcd55-37b5-45e2-9893-d5d5a2e4ea99",
            "type": "people"
          }
        }
      }
    }
  ],
  "meta": {
    "pagination": {
      "page": 1,
      "per_page": 25,
      "total_count": 1,
      "total_pages": 1
    },
    "sort": null,
    "filter": {
    }
  }
}

Fields

data

Type [Family Relationship]

Description An array of Family Relationships

Relationship [POST]

Relationship [POST]

Request

Endpoint

Body

Parameters

Attributes

created_at

Type date

Description The timestamp of when this resource was created

Required No

relationship

Type string

Description The description of how these two people are related

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

related_person.data

Type Person

Description The person this person is related to

Required No

Response

Headers

Body

Fields

Attributes

created_at

Type date

Description The timestamp of when this resource was created

relationship

Type string

Description The description of how these two people are related

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

related_person.data

Type Person

Description The person this person is related to

Relationship [GET]

Relationship [GET]

Request

Endpoint

Body

Response

Headers

Body

Fields

Attributes

created_at

Type date

Description The timestamp of when this resource was created

relationship

Type string

Description The description of how these two people are related

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

related_person.data

Type Person

Description The person this person is related to

Relationship [PUT]

Relationship [PUT]

Request

Endpoint

Body

Parameters

Attributes

created_at

Type date

Description The timestamp of when this resource was created

Required No

overwrite

Type boolean

Description Only used for updating a record where you want to ignore the server's ' 'updated_in_db_at value and force overwrite the values for the record. ' 'Must be true to work.

Required No

relationship

Type string

Description The description of how these two people are related

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

related_person.data

Type Person

Description The person this person is related to

Required No

Response

Headers

Body

Fields

Attributes

created_at

Type date

Description The timestamp of when this resource was created

relationship

Type string

Description The description of how these two people are related

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

related_person.data

Type Person

Description The person this person is related to

Relationship [DELETE]

Relationship [DELETE]

Request

Endpoint

Body

Response

Headers

Body

Last updated