Get a list of all projects.
GET /api/admin/projects
This endpoint returns an list of all the projects in the Unleash instance.
Request
- 200
- 401
- 403
projectsSchema
- application/json
- Schema
- Example (from schema)
Schema
- version integer required
The schema version used to represent the project data.
projects object[]required
A list of projects in the Unleash instance
Array [id string requiredThe id of this project
name string requiredThe name of this project
description string nullableAdditional information about the project
health numberAn indicator of the project's health on a scale from 0 to 100
featureCount numberThe number of features this project has
staleFeatureCount numberThe number of stale features this project has
potentiallyStaleFeatureCount numberThe number of potentially stale features this project has
memberCount numberThe number of members this project has
createdAt date-timeWhen this project was created.
updatedAt date-time nullableWhen this project was last updated.
favorite booleantrue
if the project was favorited, otherwisefalse
.mode stringPossible values: [
open
,protected
,private
]The project's collaboration mode. Determines whether non-project members can submit change requests or not.
defaultStickiness stringA default stickiness for the project affecting the default stickiness value for variants and Gradual Rollout strategy
avgTimeToProduction numberThe average time from when a feature was created to when it was enabled in the "production" environment during the current window
owners object
The users and/or groups that have the "owner" role in this project. If no such users or groups exist, the list will contain the "system" owner instead.
oneOf- MOD1
- MOD2
Array [anyOf- MOD1
- MOD2
ownerType string requiredPossible values: [
user
]name string requiredimageUrl string nullableemail string nullableownerType string requiredPossible values: [
group
]name string required]Array [ownerType string requiredPossible values: [
system
]]]
{
"version": 1,
"projects": [
{
"id": "dx-squad",
"name": "DX-Squad",
"description": "DX squad feature release",
"health": 50,
"featureCount": 10,
"staleFeatureCount": 10,
"potentiallyStaleFeatureCount": 10,
"memberCount": 4,
"createdAt": "2023-07-27T12:12:28Z",
"updatedAt": "2023-07-28T12:12:28Z",
"favorite": true,
"mode": "open",
"defaultStickiness": "userId",
"avgTimeToProduction": 10,
"owners": [
null
]
}
]
}
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
- id string
The ID of the error instance
- name string
The name of the error kind
- message string
A description of what went wrong.
{
"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
- id string
The ID of the error instance
- name string
The name of the error kind
- message string
A description of what went wrong.
{
"id": "9c40958a-daac-400e-98fb-3bb438567008",
"name": "NoAccessError",
"message": "You need the \"UPDATE_ADDON\" permission to perform this action in the \"development\" environment."
}