最近搜索
没有最近搜索

Allan Santos
已加入2021年10月16日
·
最后活动2021年10月16日
关注
0
关注者
0
活动总数
4
投票
1
订阅
1
活动概览
标记
文章
帖子
社区评论
文章评论
活动概览
的最新活动 Allan Santos
Allan Santos 创建了一个帖子,
帖子 Developer - Zendesk APIs
I'm trying to create requests using your Support API, but I've a custom fields and I can't set this field.
Code:
await axios.post( 'https://primepass.zendesk.com/api/v2/requests.json', {
request: {
custom_fields: [
{ id: 360034914592, value: 'feedbaks e sugestões' },
],
subject: 'Comentário feito no review do app.',
comment: {
body: comment,
},
requester: {
name: user.name,
},
},
},
{
auth: {
username: `${user.email}/token`,
password: '${token}',
},
});
request: {
custom_fields: [
{ id: 360034914592, value: 'feedbaks e sugestões' },
],
subject: 'Comentário feito no review do app.',
comment: {
body: comment,
},
requester: {
name: user.name,
},
},
},
{
auth: {
username: `${user.email}/token`,
password: '${token}',
},
});
and response:
### Status Code
`422`
### Data Received
```json
{
"error": "RecordInvalid",
"description": "Record validation errors",
"details": {
"base": [
{
"description": "Motivo do contato: não pode ficar em branco",
"error": "BlankValue",
"field_key": 360034914592
}
]
}
}
```
已于 2021年3月25日 发布 · Allan Santos
1
关注者
1
投票
1
Comment