GET/projects/{id}/roles.json

List Roles on a Project

This lets you query the list of roles set on a project.


Path Params

  • Name
    id
    Type
    integer
    required
    Description

Responses

  • Code
    200
    Type
    object
    Schema
    Description
    200 Response

Examples

200 Response

application/json
{
  "roles": [
    {
      "users": [
        {
          "firstname": "MJ",
          "id": "431",
          "userimage": "http://somesite.teamwork.com/images/users/xxx.jpg",
          "title": "",
          "lastname": "Heffernan"
        }
      ],
      "name": "Some Role",
      "description": "",
      "id": "22"
    },
    {
      "users": [
        {
          "firstname": "Daniel",
          "id": "414",
          "userimage": "http://somesite.teamwork.com/images/users/yyyy.jpg",
          "title": "",
          "lastname": "Mackey"
        },
        {
          "firstname": "MJ",
          "id": "431",
          "userimage": "http://somesite.teamwork.com/images/users/xxx.jpg",
          "title": "",
          "lastname": "Heffernan"
        }
      ],
      "name": "Developers Edited",
      "description": "People actively developing this project",
      "id": "23"
    }
  ]
}