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?
Upload file optional token purpose
Login to the community
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
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