Contents

POST/fb/subscriber/setCustomFields

Sets several custom fields for a contact; each item names the field by field_id or field_name.

Key
The account's key, as a Bearer token
Limit
10 requests per second per key

Parameters

NameInTypeRequired
subscriber_idJSON bodyinteger or stringYes
fieldsJSON bodyarray of objectYes

Request

curl -X POST https://engage.growthdept.ai/api/fb/subscriber/setCustomFields \
  -H "Authorization: Bearer 1000001:YOUR_SECRET" \
  -H "Content-Type: application/json" \
  -d '{"subscriber_id":{},"fields":[{"field_id":{},"field_name":"text","field_value":{}}]}'

Answer

HTTP 200 with status: "success".

Errors

  • 400 Refused
  • 401 Missing or invalid key
  • 429 Over the operation's limit; see Retry-After

Shapes and numbered codes: Errors.