Versions Compared

Key

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

Create a new user role.

Operation: POST flex/services/rest/v3/role

Use the following operation to create a user role in Zephyr Enterprise.

POST flex/services/rest/v3/role

Request format

To create a user role, send a POST request to the following URL:

...

Code Block
languagejson
For Role Template 2

{
  "id" : 107,
  "name" : "Project APP",
  "hasManagerApp" : false,
  "deletable" : true,
  "editable" : true,
  "createdOn" : 1588062577117,
  "roleTemplate" : {
  "id" : 2,
  "templateName" : "Project Apps","templateType" : 2,"templateApps" : "
    {"apps": [
              {"id":8,"name":"Release Setup"},
              {"id":9,"name":"Requirements"},
              {"id":11,"name":"Test Planning"},
              {"id":13,"name":"Reporting"},
              {"id":15,"name":"Test Repository"},
              {"id":16,"name":"Test Execution"},
              {"id":17,"name":"Defect Tracking"},
              {"id":20,"name":"Execute All Executions"}
             ]
    }",
  "editable" : true,
  "deletable" : true},
  "isProjectAppRole" : true
}

Assign a permission to the role

Use the following operation to assign a permission to the user role.

...

PUT /flex/services/rest/v3/role/permission?roleid={role ID}

...

Request format

To assign a permission to a user role, send a PUT request to the following URL:

...