When trying to use the REST API to update project role actors (http://docs.atlassian.com/jira/REST/latest/#id119303) I get the error below. I get this through the REST API Browser plugin or curl when using the example provided in the documentation. The POST version of the API works fine, but PUT does not.
Request body: { "user" : ["admin"] }
curl -X PUT -H "Content-Type:application/json" --cookie JSESSIONID=xxx -d '{ "user": [ "admin" ] }' http://host/rest/api/2/project/TEST/role/10001
{
"errorMessages": [ "Unrecognized field \"user\" (Class com.atlassian.jira.rest.v2.issue.project.ProjectRoleActorsUpdateBean), not marked as ignorable\n at [Source: org.apache.catalina.connector.CoyoteInputStream@64fca571; line: 1, column: 13] (through reference chain: com.atlassian.jira.rest.v2.issue.project.ProjectRoleActorsUpdateBean[\"user\"])" ] }
Community moderators have prevented the ability to post new answers.
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.