최근 검색


최근 검색 없음

Upload file optional token purpose



2021년 11월 19일에 게시됨

https://developer.zendesk.com/api-reference/ticketing/tickets/ticket-attachments/#upload-files

The curl example shows a token parameter:
curl "https://{subdomain}.zendesk.com/api/v2/uploads?filename=user_crash.log&token={optional_token}"

What is the purpose of this parameter and what value should it take?


0

2

댓글 2개

image avatar

Erica Girges

Zendesk Developer Advocacy

Hi Pavel,
 
Thank you so much for posting your question! So when multiple files need to be uploaded with the same request. It is handled by the request being divided into multiple requests (1 request per 1 file). The first request that goes through will generate an API token. That unique token will then be what is passed into the token parameter for the subsequent requests. This ensures that each file upload is still associated with that initial request. The API token is the equivalent of stapling/paper clipping documents together. Each paper has its own information but they still all belong together and we don't want anything to get lost along the way. Passing in the API token does just that by connecting each file upload with each other.
 
Hope this helps!
 
Best,
 
Erica - Dev Support

1


Erica Girges is there any practical reason why we should do this? Does the ticket comment API not allow multiple file tokens to be attached to the same ticket comment?

0


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

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

새 게시물