Create a new access token
Create a new short-lived access token, optionally limited to the provided permissions and projects. Users do not need any specific Develocity permission to do this, but must be authenticated. If an access key is used to authenticate this request, the created token will be limited to the user's permissions and projects. If an access token is used to authenticate this request, the created token will be limited to the authenticating token's permissions and projects and not live longer than the authenticating token's remaining lifetime. Query parameters can be used to further restrict the permissions of the access token. A 401 response will be sent if the request is not authenticated. A 403 response will be sent if one of the projects or permissions present in the query parameters is not assigned to this user. A 403 will also be sent if an access token is used to authenticate the request and the requested expiration date is after the authenticating access token's expiration.
Request
- Base URLhttps://develocity.example.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Limit the created token to one or more projects. Values should be project ids. Comma seperated values and repeated parameters are supported.
Limit the created token to one or more permissions. Values should be permission config values. Comma seperated values and repeated parameters are supported.
The lifetime of the created token, in hours.
Response
An access token
Changes
No recorded changes to this operation across all 1 revision of this API.