You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.