Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titlePUT /rest/raven/1.0/api/testrun/{id}/assignee
Panel
borderColor#ccc
borderStylesolid

Updates the test run assignee.

Request

PATH PARAMETERS
parametertypedescription
idinteger

- ID of the test run.

QUERY PARAMETERS
parametertypedescription
userString

-

The user key of the test run assignee.

User's key or username from the user to be assigned to the test run

Xray will first try to find the user by its key and if it don't then it will try to find the user by its username

Tip
titleExample Request
curl -H "Content-Type: application/json" -X PUT -u admin:admin http://yourserver/rest/raven/1.0/api/testrun/3/assignee?user=ampr

Responses

200 OK : text/plain : Successful. Returns a json with the assignee

Code Block
titleExample Output
{
	"assigned": true,
	"assignee": "ampr"
}

400 BAD_REQUEST : text/plain : Returns the error.

404 NOT_FOUND : text/plain : Test run not found.

401 UNAUTHORIZED : text/plain : The Xray license is not valid.

500  INTERNAL SERVER ERROR : text/plain : An internal error occurred when updating the test run assignee.

...