GET/companies/{id}/projects.json
Retrieve Projects assigned to a specific Company
Returns a single project identified by its integer ID.
Path Params
- Name
id
- Type
- string
- required
- Description
Query Params
- Name
includePeople
- Type
- boolean
- Description
You can pass includePeople=true as an optional parameter to get an array of ID's of all people associated with each project included in the response under the field people
Request Examples
Example Request
GET
/companies/{id}/projects.jsoncurl --request GET \ --url https://{site_name}.teamwork.com/stats.json
Responses
- Code
- 200
- Type
- object
- Schema
- Description
- 200 Response
200 Response
application/json
{
"STATUS": "OK",
"projects": [
{
"company": {
"name": "Demo 1 Company",
"is-owner": "1",
"id": "999"
},
"starred": true,
"name": "demo",
"show-announcement": false,
"announcement": "",
"description": "A demo project",
"status": "active",
"isProjectAdmin": true,
"created-on": "2014-03-28T15:24:22Z",
"category": {
"name": "",
"id": ""
},
"start-page": "projectoverview",
"startDate": "",
"logo": "http://demo1company.teamwork.com/images/logo.jpg",
"notifyeveryone": false,
"id": "999",
"last-changed-on": "2014-04-01T14:29:32Z",
"endDate": "",
"harvest-timers-enabled": "true"
}
]
}