v1

latestOpenAPI 3.0.12026-07-149718.6 KB
Facebook Messenger

Update a Messenger account

patch/messenger/{external_id}

Path parameters

external_idstring required

External id of the account you want to update. In this case it is the Facebook Page ID.

Request body

access_tokenstring
applicationsstring[]
namestring

The new account name

Example request

{
  "access_token": "updatedAccessToken",
  "applications": [
    "newApplicationId"
  ],
  "name": "newName"
}

Response

OK.

access_tokenstring required

The provider access token

api_keystring required

The external api key for this account

applicationsstring[]

The array of associated application ids

external_idstring required

The external identifier for this account. In this case it is the Facebook Page ID.

namestring

The account name

providerstring required

The provider (will be messenger).

Example response

{
  "access_token": "updatedAccessToken",
  "api_key": "abcd1234",
  "applications": [
    "newApplicationId"
  ],
  "external_id": "12345678",
  "name": "newName",
  "provider": "messenger"
}