View Project
Method for viewing the data of a specified project.
Request Parameters
GET /api/clients/v1/projects/{id}/
Headers
- Content-Type: application/json
- Authorization: Bearer
$access_token
Path
| Parameter | Type | Constraints | Description | Example |
|---|---|---|---|---|
| id | integer | > 0, required | Project ID | 5 |
Параметры ответа
JSON body
| Parameter | Type | Description |
|---|---|---|
| id | integer | Project ID |
| owner_id | integer | owner ID |
| name | string | Project name |
Примеры
200 OK
Project object
{
"id": 5,
"owner_id": 22,
"name": "company_project"
}
400 Bad Request
Invalid path parameters provided
{
"id": [
"A valid integer is required."
]
}
401 Unauthorized
Authentication credentials are missing or invalid
{
"detail": "Given token not valid for any token type",
"code": "token_not_valid",
"messages": [
{
"token_class": "AccessToken",
"token_type": "access",
"message": "Token is invalid or expired"
}
]
}
403 Forbidden
Only participants can view this project
{
"detail": "Only participants can view this project"
}
404 Not Found
Project with the given ID not found
{
"detail": "Project not found"
}