最近搜索


没有最近搜索

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



已于 2024年11月07日 发布

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.
 


0

1

1 条评论

image avatar

Erica Girges

Zendesk Developer Advocacy

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"}]

0


请先登录再写评论。

找不到所需的内容?

新建帖子