Accounts & connections · Account Settings

Update a Facebook Page's public info

Updates a Facebook Page's public info. Fields you leave out keep their current values.

PATCHhttps://api.pozy.ai/v1/accounts/{accountId}/facebook-page-info
updateFacebookPageInfo

Guides: Facebook, Conversation starters

Request

Send your API key as Authorization: Bearer pz_live_.... Read-only keys cannot call it. Keys with the accounts resource group disabled get 403 resource_group_disabled. Authentication

Path parameters

NameTypeNotes
accountIdrequiredstring

Request body

application/json, required

  • aboutstring

    Up to 100 characters.

  • descriptionstring
  • websitestring
  • phonestring
  • emailsarray of string (email)
  • hoursmap of string

Example

curl -X PATCH "https://api.pozy.ai/v1/accounts/696e0b682d0a31188e7a2ba9/facebook-page-info" \
  -H "Authorization: Bearer $POZY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "about": "string",
  "description": "A short description",
  "website": "string",
  "phone": "+14155550123"
}'

Response

200 on success

  • aboutstringrequired

    Can be null.

  • descriptionstringrequired

    Can be null.

  • websitestringrequired

    Can be null.

  • phonestringrequired

    Can be null.

  • emailsarray of stringrequired
  • hoursmap of stringrequired
200 response
{
  "about": "string",
  "description": "A short description",
  "website": "string",
  "phone": "+14155550123",
  "emails": [
    "alex@example.com"
  ],
  "hours": {
    "key": "string"
  }
}

Errors

Errors use one shape: { error, type, code, param?, details? }. The ones you are most likely to see here:

400invalid_request_errorA parameter or body field is missing or invalid. param names it.
401authentication_errorThe API key is missing, revoked or expired.
403permission_errorThe key is read-only, scoped to other profiles, or has this resource group disabled.
404not_foundNothing with that id exists in your workspace.
429rate_limit_errorToo many requests this minute. Wait for Retry-After seconds.

Every code is listed in Errors.

More in Account Settings