Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

"Unrecognized field" error on setting project roles through API

Phillip Brand March 12, 2013

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\"])"
  ]
}

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Phillip Brand March 19, 2013
0 votes
Phillip Brand March 13, 2013
TAGS
AUG Leaders

Atlassian Community Events