Projects
Create a project API token.
Changed onEndpoint that allows creation of project API tokens for the specified project.
post/api/admin/projects/{projectId}/api-tokens
Request
- Base URLhttps://app.unleash-instance.example.com
- URLhttps://app.unleash-instance.example.com/api/admin/projects/{projectId}/api-tokens
- Auth
- API key in header Authorization
- or HTTP bearer
Path parameters
projectIdstring required
Request body
Example request
{
"type": "frontend",
"environment": "development",
"expiresAt": "2023-10-01T00:00:00Z",
"tokenName": "some-user"
}Response
The resource was successfully created.
Example response
{
"secret": "project:environment.xyzrandomstring",
"tokenName": "some-user",
"type": "client",
"environment": "development",
"project": "developerexperience",
"projects": [
"developerexperience",
"enterprisegrowth"
],
"expiresAt": "2023-04-19T08:15:14.000Z",
"createdAt": "2023-04-19T08:15:14.000Z",
"seenAt": "2023-04-19T08:15:14.000Z",
"alias": "randomid-or-some-alias",
"secure": true
}Changes
- breaking
the response property
became nullable for the status - breaking
the response property
became optional for the status - info
added the optional property
to the response with the status
- breaking