Error 401 when doing a PUT request

I am trying to update a custom field of a ticket but it appears me the error 401.

The header is wrotten two times

Based on the error message and image you shared, it seems like there is a problem with the authorization of your PUT request. I see that Mariam_Akif mentioned that the header is written twice which could be causing the issue.

When you send a request with headers in HTTP, each header needs to be written once in the following format:

Header: value

If the header is written twice, it could cause confusion and an error such as the one you are experiencing.

I would recommend checking your code to make sure you are not duplicating the headers and that you are using the correct authentication method.

This topic was automatically closed 6 days after the last reply. New replies are no longer allowed.