Get project status
GET/api/admin/projects/:projectId/status
This endpoint returns information on the status the project, including activities, health, resources, and aggregated flag lifecycle data.
Request
Path Parameters
Responses
- 200
- 401
- 403
- 404
projectStatusSchema
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
activityCountByDate
object[]
required
Array of activity records with date and count, representing the project’s daily activity statistics.
Activity date
2022-12-14
Activity count
The average health score over the last 4 weeks, indicating whether features are stale or active.
resources
object
required
Key resources within the project
The number of environments that have received SDK traffic in this project.
The number of API tokens created specifically for this project.
The number of users who have been granted roles in this project. Does not include users who have access via groups.
The number of segments that are scoped to this project.
{
"activityCountByDate": [
{
"date": "2022-12-14",
"count": 0
}
],
"averageHealth": 0,
"resources": {
"connectedEnvironments": 0,
"apiTokens": 0,
"members": 0,
"segments": 0
}
}
Authorization information is missing or invalid. Provide a valid API token as the authorization
header, e.g. authorization:*.*.my-admin-token
.
- application/json
- Schema
- Example (from schema)
Schema
The ID of the error instance
9c40958a-daac-400e-98fb-3bb438567008
The name of the error kind
AuthenticationRequired
A description of what went wrong.
You must log in to use Unleash. Your request had no authorization header, so we could not authorize you. Try logging in at /auth/simple/login.
{
"id": "9c40958a-daac-400e-98fb-3bb438567008",
"name": "AuthenticationRequired",
"message": "You must log in to use Unleash. Your request had no authorization header, so we could not authorize you. Try logging in at /auth/simple/login."
}
The provided user credentials are valid, but the user does not have the necessary permissions to perform this operation
- application/json
- Schema
- Example (from schema)
Schema
The ID of the error instance
9c40958a-daac-400e-98fb-3bb438567008
The name of the error kind
NoAccessError
A description of what went wrong.
You need the "UPDATE_ADDON" permission to perform this action in the "development" environment.
{
"id": "9c40958a-daac-400e-98fb-3bb438567008",
"name": "NoAccessError",
"message": "You need the \"UPDATE_ADDON\" permission to perform this action in the \"development\" environment."
}
The requested resource was not found.
- application/json
- Schema
- Example (from schema)
Schema
The ID of the error instance
9c40958a-daac-400e-98fb-3bb438567008
The name of the error kind
NotFoundError
A description of what went wrong.
Could not find the addon with ID "12345".
{
"id": "9c40958a-daac-400e-98fb-3bb438567008",
"name": "NotFoundError",
"message": "Could not find the addon with ID \"12345\"."
}