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
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
]
{
"version": 1,
"projects": [
{
"id": "dx-squad",
"name": "DX-Squad",
"description": "DX squad feature release",
"health": 50,
"featureCount": 10,
"memberCount": 4,
"createdAt": "2023-07-27T12:12:28Z",
"updatedAt": "2023-07-28T12:12:28Z",
"favorite": true,
"mode": "open",
"defaultStickiness": "userId"
}
]
}
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."
}