GET /roles
- Returns all roles.
Response fields |
Description/format |
id |
Integer |
name |
String |
created_by |
Integer, ID of person |
updated_by |
Integer, ID of person |
created_at |
Date |
updated_at |
Date |
[
{
"id":1,
"name":"Developer",
"created_by":1,
"updated_by":1,
"created_at":"2017-01-14T18:46:56Z",
"updated_at":"2017-01-14T18:47:58Z"
}, ...
]
GET /roles/{roleId}
- Returns a specific role.
Response fields |
Description/format |
id |
Integer |
name |
String |
created_by |
Integer, ID of person |
updated_by |
Integer, ID of person |
created_at |
Date |
updated_at |
Date |
{
"id":1,
"name":"Developer",
"created_by":1,
"updated_by":1,
"created_at":"2017-01-14T18:46:56Z",
"updated_at":"2017-01-14T18:47:58Z"
}
POST /roles
- Creates a new role. Returns the same object as getting a single role.
Request fields |
Description/format |
name |
(Required) String |
POST https://api.forecast.it/api/v1/roles
PUT /roles/{roleId}
- Updates a role. Returns the same object as getting a single role.
Request fields |
Description/format |
name |
String |
PUT https://api.forecast.it/api/v1/roles/1
{
"name":"Project Manager",
}
DELETE /roles/{roleId}
- Deletes a role.
DELETE https://api.forecast.it/api/v1/roles/1