Jira issue update 405

Hi, running into a 405 when making a PUT to https://.atlassian.net/jira/api/3/issue/

I’m trying to copy a value from a single user picker to a multi-user picker. The body is:

{
  "update": {
    "customfield_<ID>": [
      {
        "set": {
          "id": "<ID>"
        }
      }
    ]
  }
}

and the headers are:

{
  "Authorization": "Basic <token>",
  "Content-Type": "application/json",
  "Accept": "application/json"
}

I’ve played around with the payload format a bit but have been unable to get it to work and after a bit of back and forth Atlassian support has pointed me here. Thanks for any guidance you can provide!

Hello @DerrickSmith

For the multiuserpicker, you don’t perform an update action on the field’s value(s), you just set the value(s) directly by passing an array of one or more user IDs:

{
  "fields": {
    "customfield_<field_id>": [
      {
          "id": "<user_id#1>"
      },
      {
          "id": "<user_id#2>"
      }
    ]
  }
}