Trying to create a user in Jira DataCentre 8.20 using the API rest/api/2/user listed as "experimental" using Python Requests
I'm sending a POST with the header 'Content-Type': 'application/json;charset=UTF-8'
data as follows (redacted):
{"name": "username","emailAddress": "forename.surname@domain.co.uk","displayName": "Forename Surname","applicationKeys": ["jira-software-users"]}
And it gives me back the error:
Can not instantiate value of type [simple type, class com.atlassian.jira.rest.v2.issue.UserWriteBean] from JSON String; no single-String constructor/factory method
Have I made a mistake with the JSON string, or some other error?
I'm assuming applicationKeys corresponds to the Jira user group to add the user to.
Thanks
Brian