最近搜索


没有最近搜索

yeasir arafat's Avatar

yeasir arafat

已加入2021年10月16日

·

最后活动2021年10月16日

关注

0

关注者

0

活动总数

6

投票

1

订阅

1

活动概览

的最新活动 yeasir arafat

yeasir arafat 进行了评论,

社区评论 Developer - Zendesk APIs

Hi Nathania,

Yes I had this issue resolved. What is the response that you are receiving from the sandbox instance?

The sandbox instance is a different entity to the production instance. So the settings/data from production is not copied over to the sandbox instance, as I understood. Please make sure access using api key in sandbox is enabled.

In my case the issue was I was trying to create a zendesk ticket on behalf of one of our application customers but the sandbox instance could not find that person(i.e.; requester_id). Later we found out that it was happening because the id/person on behalf of whom I was trying to create the ticket  exists in our production(which was connected to zendesk prod) and I assumed it exists in zendesk sandbox instance as well. But as I mentioned above, that is not the case.

If this does not help, submit a support request with the request and response details and someone should help you out. I received prompt support.

查看评论 · 已于 2021年10月14日 发布 · yeasir arafat

0

关注者

0

投票

0

评论


yeasir arafat 进行了评论,

社区评论 Developer - Zendesk APIs

Hello Eric,

Absolutely. Please let me know if you need any further details from my end.

Thankfully,
Yeasir

查看评论 · 已于 2021年8月10日 发布 · yeasir arafat

0

关注者

0

投票

0

评论


yeasir arafat 进行了评论,

社区评论 Developer - Zendesk APIs

Hi Eric,

Thank you very much for responding. I almost lost hope that I would get a solution. Have had to resort to opening temporary accounts with trial period to test my changes.

Yes, token access is enabled for the sandbox instance. Here is the latest status: I am getting a 422 error if i use the sandbox subdomain and authentication details. However, if i use my other account's(the temporay ones that i have opened) subdomain and api token, i can successfully create ticket or create users in zendesk. Here is the response that I am getting:

Client error: `POST https://DUMMYDOMAIN.zendesk.com/api/v2/tickets.json` resulted in a `422 Unprocessable Entity` response: {"error":"RecordInvalid","description":"Record validation errors","details":{"submitter":[{"description":"Submitter is i (truncated...) [details] {"error":"RecordInvalid","description":"Record validation errors","details":{"submitter":[{"description":"Submitter is invalid","error":"InvalidValue"}],"base":[{"description":"Author is invalid"}],"requester":[{"description":"Requester: is invalid","error":"InvalidValue"}]}}

Can you please guide me to the right direction to resolve the issue?

Thanks,
Yeasir

查看评论 · 已于 2021年8月10日 发布 · yeasir arafat

0

关注者

0

投票

0

评论


yeasir arafat 创建了一个帖子,

帖子 Developer - Zendesk APIs

I have created a sandbox in our company's zendesk account. I am not the admin but the account that I used to create the sandbox has admin priviliges. I created API key in that sandbox. Then i tried curl command to hit the query api (api/v2/requests/search.json?query=) on the sandbox instance(obviously using the sandbox subdomain) but I am getting error "Could not authenticate you". If i hit the production instance with a production instance api, it works, which means my curl command syntax is correct.

What am i doing wrong? Can the sandbox instance be accessed via the api?

 

已于 2021年8月06日 发布 · yeasir arafat

0

关注者

3

投票

7

评论