Hi,
We have imported quite a few users, but did not set the externalId. Im now trying to use the REST interface for it. I have several script running just fine. But when Im trying to update a user via the POST function I constantly get a response 400: "Description is required". Earlier I have a "description is required, region is required" This was solved by adding region information to the user. However, there is no description field on a user...
I would like to hear if others have had this problem. or have suggestions on how to solve it.
Hi Morten,
POST function will only create a user it will not update a user.
Try using PATCH instead with the relevant JSON patch document.
Check out https://your-jira-align-instance/rest/align/api/docs/index.html to see the Swagger for the Users Endpoint.
Try a PATCH request on the user id with the JSON information
[
{
"op":"replace",
"path": "/externalId",
"value": "new external id here"
}
]
Thanks for your input. I can see that I wrote wrong in the first post im using the "PUT" command. using first "get", then update the user and then "put".
I have tried using the patch function. this was succesfull:-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.