ApiKeys
Generate a new API key for a User
The API Key returned in the result must be saved by the caller, as it cannot be retrieved subsequently from the Octopus server
post/users/{userId}/apikeys
Request
- Base URLhttps://demo.octopus.app/api
- URLhttps://demo.octopus.app/api/users/{userId}/apikeys
- Auth
- API key in header X-Octopus-ApiKey
- or API key in query parameter ApiKey
- or API key in header X-NuGet-ApiKey
Path parameters
userIdstring required
ID of the user
Request body
Example request
{
"UserId": "Users-1"
}Response
The created API Key, containing the unencrypted value of the key which must be saved by the caller, as it cannot be retrieved subsequently from the Octopus server.
Example response
{
"Links": {
"Self": "/api/..."
}
}Changes
No recorded changes to this operation across all 13 revisions of this API.