Facebook Accounts

Facebook Accounts Documentation

Facebook Account [LIST]

Facebook Account [LIST]

Request

Endpoint

GET /api/v2/contacts/29f3d47e-a117-4c9e-9dff-33bb5b634d9a/people/e64e1778-4555-4e8f-aa7d-8e5747ba5b84/facebook_accounts
Content-Type: application/vnd.api+json

Body

Response

Headers

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

Body

{
  "data": [
    {
      "id": "96117137-85cb-48eb-94a0-39436b783624",
      "type": "facebook_accounts",
      "attributes": {
        "created_at": "2021-11-23T14:37:49Z",
        "first_name": "Kate",
        "last_name": "Purdy",
        "remote_id": 4,
        "updated_at": "2021-11-23T14:37:49Z",
        "updated_in_db_at": "2021-11-23T14:37:49Z",
        "username": "kate_purdy"
      }
    }
  ],
  "meta": {
    "pagination": {
      "page": 1,
      "per_page": 25,
      "total_count": 1,
      "total_pages": 1
    },
    "sort": null,
    "filter": {
    }
  }
}

Fields

data

Type [Facebook Account]

Description An array of Facebook Accounts

Facebook Account [POST]

Facebook Account [POST]

Request

Endpoint

POST /api/v2/contacts/e3c60d1f-8986-4254-ad5a-91013132643a/people/9446c429-fc4d-41d5-aff4-5edfea226a0f/facebook_accounts
Content-Type: application/vnd.api+json

Body

{
  "data": {
    "type": "facebook_accounts",
    "attributes": {
      "first_name": "Tianna",
      "last_name": "Schoen",
      "remote_id": 8,
      "updated_in_db_at": "2021-11-23 14:37:50 UTC",
      "username": "schoen_tianna"
    }
  }
}

Parameters

Attributes

created_at

Type date

Description The timestamp of when this resource was created

Required No

first_name

Type string

Description The first name of the Facebook Account

Required No

last_name

Type string

Description The last name of the Facebook Account

Required No

remote_id

Type string

Description The ID of the Facebook Account in the remote system

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

username

Type string

Description The username of the Facebook Account in the remote system

Required No

Response

Headers

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

Body

{
  "data": {
    "id": "f26e8c93-6612-48a8-9596-703d2f86c5d5",
    "type": "facebook_accounts",
    "attributes": {
      "created_at": "2021-11-23T14:37:50Z",
      "first_name": "Tianna",
      "last_name": "Schoen",
      "remote_id": 8,
      "updated_at": "2021-11-23T14:37:50Z",
      "updated_in_db_at": "2021-11-23T14:37:50Z",
      "username": "schoen_tianna"
    }
  }
}

Fields

Attributes

created_at

Type date

Description The timestamp of when this resource was created

first_name

Type string

Description The first name of the Facebook Account

last_name

Type string

Description The last name of the Facebook Account

remote_id

Type string

Description The ID of the Facebook Account in the remote system

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.

username

Type string

Description The username of the Facebook Account in the remote system

Facebook Account [GET]

Facebook Account [GET]

Request

Endpoint

GET /api/v2/contacts/63be1456-6950-44df-96e3-84169977c034/people/246a190f-f1b0-414b-9fd4-074022975673/facebook_accounts/62b869c0-58fb-48d5-88e7-db75c563aac1
Content-Type: application/vnd.api+json

Body

Response

Headers

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

Body

{
  "data": {
    "id": "62b869c0-58fb-48d5-88e7-db75c563aac1",
    "type": "facebook_accounts",
    "attributes": {
      "created_at": "2021-11-23T14:37:49Z",
      "first_name": "Nigel",
      "last_name": "Bauch",
      "remote_id": 5,
      "updated_at": "2021-11-23T14:37:49Z",
      "updated_in_db_at": "2021-11-23T14:37:49Z",
      "username": "nigel_bauch"
    }
  }
}

Fields

Attributes

created_at

Type date

Description The timestamp of when this resource was created

first_name

Type string

Description The first name of the Facebook Account

last_name

Type string

Description The last name of the Facebook Account

remote_id

Type string

Description The ID of the Facebook Account in the remote system

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.

username

Type string

Description The username of the Facebook Account in the remote system

Facebook Account [PUT]

Facebook Account [PUT]

Request

Endpoint

PUT /api/v2/contacts/9a6996e0-bd05-47c7-a5f3-52d0982693a5/people/4ffc8d40-a010-4543-b47e-73ac9bc19a47/facebook_accounts/8dfa69d5-5cc7-43d7-8b6b-2a20ded9141d
Content-Type: application/vnd.api+json

Body

{
  "data": {
    "type": "facebook_accounts",
    "attributes": {
      "first_name": "Dannie",
      "last_name": "Torphy",
      "remote_id": 3,
      "updated_in_db_at": "2021-11-23 14:37:49 UTC",
      "username": "torphy_dannie"
    }
  }
}

Parameters

Attributes

created_at

Type date

Description The timestamp of when this resource was created

Required No

first_name

Type string

Description The first name of the Facebook Account

Required No

last_name

Type string

Description The last name of the Facebook Account

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

remote_id

Type string

Description The ID of the Facebook Account in the remote system

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

username

Type string

Description The username of the Facebook Account in the remote system

Required No

Response

Headers

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

Body

{
  "data": {
    "id": "8dfa69d5-5cc7-43d7-8b6b-2a20ded9141d",
    "type": "facebook_accounts",
    "attributes": {
      "created_at": "2021-11-23T14:37:49Z",
      "first_name": "Dannie",
      "last_name": "Torphy",
      "remote_id": 3,
      "updated_at": "2021-11-23T14:37:49Z",
      "updated_in_db_at": "2021-11-23T14:37:49Z",
      "username": "torphy_dannie"
    }
  }
}

Fields

Attributes

created_at

Type date

Description The timestamp of when this resource was created

first_name

Type string

Description The first name of the Facebook Account

last_name

Type string

Description The last name of the Facebook Account

remote_id

Type string

Description The ID of the Facebook Account in the remote system

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.

username

Type string

Description The username of the Facebook Account in the remote system

Facebook Account [DELETE]

Facebook Account [DELETE]

Request

Endpoint

DELETE /api/v2/contacts/412bbcce-16b2-4a26-95cd-7421349a6aa7/people/16cf28f6-6033-44d6-83c3-60cf6ce6be05/facebook_accounts/73963cc3-b155-403f-b578-08c3680dd351
Content-Type: application/vnd.api+json

Body

Response

Headers

204 No Content

Body

Last updated