最近の検索


最近の検索はありません

Allan Santos's Avatar

Allan Santos

参加日2021年10月16日

·

前回のアクティビティ2021年10月16日

フォロー中

0

フォロワー

0

合計アクティビティ

4

投票

1

サブスクリプション

1

アクティビティの概要

さんの最近のアクティビティ Allan Santos

Allan Santosさんがコメントを作成しました:

コミュニティのコメント Developer - Zendesk APIs

Found my mistake it's about value of custom field: `feedbaks_e_sugestões` instead `feedbaks e sugestões`

コメントを表示 · 投稿日時:2021年3月25日 · Allan Santos

0

フォロワー

1

投票

0

コメント


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}',
    },
});
 
 
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

コメント