[Channel App] Push Endpoint: How to use author#fields ? | Community
Skip to main content

[Channel App] Push Endpoint: How to use author#fields ?

  • November 7, 2024
  • 1 reply
  • 0 views

Hi there,

I am struggling to understand the push endpoint documentation on how to set the fields for the author ?

Let's say this is the author object:

{
"external_id": 1,
"fields": [] 
}

 

How do I add the email to the fields array ?

The description of the attribute says:
> Array of items containing user field identifier ('id') and value of field ('value'.) For system fields ('notes' or 'details'), the identifier is the English name. For custom fields, the identifier may be the ID or the name

But when adding it as “fields”: [{"email": “something@example.com”}], the email does not show up.

Am I restricted to only notes and details ? If so, do I add them as key value pairs
[{"notes": “a note”}, {"details": “some details”}] ?

Thank you for your help.
 

1 reply

  • November 8, 2024
Hi Yorick,  Apologies for any confusion. So you're actually looking to create an array of objects. Each object containing id and value as the keys and the value for each of those keys set to the name of what you're looking to include. So it would look like this: 
 
"field":[{"id": "email", "value": "something@example.com"}, {"id": "details", "value": "some details"}]