Enterprise Proxy Create Api Token

Enterprise Proxy Create Api Token

Creates an API Token according to the information specified . Lifetime should be in milliseconds . [ Token Lifetime should be less than or equal to 12 months]

Privileges required:

CREATE PROXY_TOKEN

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

Show optional properties

{
    "enterpriseUserId": 0,
    "name": "string",
    "lifetimeMs": 0
}
{
    "enterpriseUserId": 0,
    "name": "string",
    "description": "string",
    "lifetimeMs": 0
}
integer
enterpriseUserId
Required

enterpriseUserId

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 '{"enterpriseUserId:"integer","name:"string","lifetimeMs:"integer"}' https://{api_host}/portal/rest/enterpriseProxy/createApiToken