create API Key
POST {{baseUrl}}/api/api-key
Creates an API key. You can optionally specify a unique Id for the key, if not provided one will be generated. an API key can only be created with equal or lesser authority. An API key cannot create another API key unless it is granted to that API key. If an API key is locked to a tenant, it can only create API Keys for that same tenant.
Request Body
{"apiKey"=>{"id"=>"<uuid>", "insertInstant"=>"<long>", "ipAccessControlListId"=>"<uuid>", "key"=>"<string>", "keyManager"=>"<boolean>", "lastUpdateInstant"=>"<long>", "metaData"=>{"attributes"=>{"ad_0_4"=>"<string>", "voluptate_34d"=>"<string>"}}, "tenantId"=>"<uuid>"}, "sourceKeyId"=>"<uuid>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"apiKey":{"id":"\u003cuuid\u003e","insertInstant":"\u003clong\u003e","ipAccessControlListId":"\u003cuuid\u003e","key":"\u003cstring\u003e","keyManager":"\u003cboolean\u003e","lastUpdateInstant":"\u003clong\u003e","metaData":{"attributes":{"commodo5ef":"\u003cstring\u003e"}},"permissions":{"endpoints":{}},"tenantId":"\u003cuuid\u003e"}}