Create a new authentication token for the matching user.
POST {{baseUrl}}/app/rest/users/:userLocator/tokens?fields=<string>
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
fields | string |
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
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"name":"\u003cstring\u003e","creationTime":"\u003cdateTime\u003e","value":"\u003cstring\u003e","expirationTime":"\u003cdateTime\u003e","permissionRestrictions":{"count":"\u003cinteger\u003e","permissionRestriction":[{"isGlobalScope":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"project":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"permission":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},{"isGlobalScope":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"project":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"permission":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}]}}