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
| Name | In | Type | Required |
|---|---|---|---|
| subscriber_id | JSON body | integer or string | Yes |
| fields | JSON body | array of object | Yes |
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
400Refused401Missing or invalid key429Over the operation's limit; see Retry-After
Shapes and numbered codes: Errors.