최근 검색


최근 검색 없음

[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


댓글을 남기려면 로그인하세요.

원하는 정보를 못 찾으셨나요?

새 게시물