I'm trying to set the value for a multiple users User Picker custom field to one or more people by using the REST API.
I'm looking up the account ID for each person I want to put into the field and then sending the JSON block to the issue's "self" URL with a PUT method.
So, for example, the JSON block might look like this:
{"fields": {"customfield_10184": [{"id": "5b31f567349a91633c1b9c72"}]}}
and I "PUT" it to https://<redacted>.atlassian.net/rest/api/2/<issue_id>
MOST of the time, this works just fine.
Occasionally, though, I'm getting a 404 response with this reply:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><status><status-code>404</status-code><message>null for uri: https://<redacted>.atlassian.net/rest/api/2/issue_id</message></status>
Trying the call again later with exactly the same payload succeeds.
Is it a timing issue with the REST API? Do I need to back off and just try again? Or is there something wrong with the payload I'm sending and it is just lucky if it works?
Thanks.