최근 검색
최근 검색 없음

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
댓글