Skip to main content
Version: Next

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

ParameterTypeConstraintsDescriptionExample
idinteger> 0, requiredProject ID5

Параметры ответа

JSON body

ParameterTypeDescription
idintegerProject ID
owner_idintegerowner ID
namestringProject 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"
}