Network Create Api Token

Network Create Api Token

Creates an Operator API Token according to the information specified. Though the lifetime is accepted as milliseconds, it will be rounded off to the nearest second value in accordance to the exp claim of the JWT token. [ Token Lifetime should be less than or equal to 12 months]

Privileges required:

CREATE OPERATOR_TOKEN

Request
URI
POST
https://{api_host}/portal/rest/network/createApiToken
COPY
Request Body

Show optional properties

{
    "name": "string",
    "lifetimeMs": 0
}
{
    "operatorUserId": 0,
    "name": "string",
    "description": "string",
    "lifetimeMs": 0
}
integer
operatorUserId
Optional

operatorUserId

string
name
Required

name

string
description
Optional

description

integer
lifetimeMs
Required

lifetimeMs

Responses
200

Request was successfully processed

Returns create_api_token_result of type(s) application/json
This response body class contains all of the following: Inlinecreate_api_token_result0
{
    "id": 123,
    "rows": 1
}

400
Returns generic_400 of type(s) application/json
Operation doesn't return any data structure

500
Returns generic_500 of type(s) application/json
Operation doesn't return any data structure

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"name:"string","lifetimeMs:"integer"}' https://{api_host}/portal/rest/network/createApiToken