Issue an additional one-time operator session token
Generated from the checked-in source. Do not edit this reference by hand.
POST /api/v1/operators/{operator}/sessions
Operation: adminIssueOperatorSession.
Authentication
Section titled “Authentication”Use the credential and permission scope described above. Each object below is an alternative; schemes within one object are required together.
[ { "adminBearerAuth": [] }]HTTP request
Section titled “HTTP request”Set NIU_ORIGIN to your installation origin (without /v1). Replace path, query and header placeholders with the required values. Query examples use curl 7.87 or newer to encode values with --url-query. Use the credential scope described above; a bearer token must have the authority required by this operation.
curl --fail-with-body -X POST "$NIU_ORIGIN/api/v1/operators/{operator}/sessions" \ -H "Authorization: Bearer $NIU_ADMIN_TOKEN" \ -H 'Content-Type: application/json' \ --data @request.jsonParameters
Section titled “Parameters”operator
Section titled “operator”Location: path. Required.
{ "type": "string", "format": "uuid"}Request body
Section titled “Request body”application/json
Section titled “application/json”Required.
{ "type": "object", "additionalProperties": false, "required": [ "expires_in_seconds" ], "properties": { "expires_in_seconds": { "type": "integer", "minimum": 60, "maximum": 31536000 } }}Responses
Section titled “Responses”HTTP 201
Section titled “HTTP 201”Session created; response includes Cache-Control no-store and the token is shown once.
HTTP 400
Section titled “HTTP 400”Session lifetime is outside the supported range.
HTTP 401
Section titled “HTTP 401”Missing, invalid, expired or revoked credentials.
HTTP 403
Section titled “HTTP 403”The authenticated operator is not an owner.
HTTP 409
Section titled “HTTP 409”Operator is unavailable.