Create a new authentication token for the matching user.

POST {{baseUrl}}/app/rest/users/:userLocator/tokens?fields=<string>

Request Params

KeyDatatypeRequiredDescription
fieldsstring

Request Body

{"name"=>"<string>", "creationTime"=>"<dateTime>", "value"=>"<string>", "expirationTime"=>"<dateTime>", "permissionRestrictions"=>{"count"=>"<integer>", "permissionRestriction"=>[{"isGlobalScope"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "project"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "permission"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, {"isGlobalScope"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "project"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "permission"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}]}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;creationTime&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;value&quot;:&quot;\u003cstring\u003e&quot;,&quot;expirationTime&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;permissionRestrictions&quot;:{&quot;count&quot;:&quot;\u003cinteger\u003e&quot;,&quot;permissionRestriction&quot;:[{&quot;isGlobalScope&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;project&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;permission&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},{&quot;isGlobalScope&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;project&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;permission&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}}]}}