create Api Key With Id

POST {{baseUrl}}/api/api-key/:keyId

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. OR Updates an authentication API key by given id

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

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;apiKey&quot;:{&quot;id&quot;:&quot;\u003cuuid\u003e&quot;,&quot;insertInstant&quot;:&quot;\u003clong\u003e&quot;,&quot;ipAccessControlListId&quot;:&quot;\u003cuuid\u003e&quot;,&quot;key&quot;:&quot;\u003cstring\u003e&quot;,&quot;keyManager&quot;:&quot;\u003cboolean\u003e&quot;,&quot;lastUpdateInstant&quot;:&quot;\u003clong\u003e&quot;,&quot;metaData&quot;:{&quot;attributes&quot;:{&quot;commodo5ef&quot;:&quot;\u003cstring\u003e&quot;}},&quot;permissions&quot;:{&quot;endpoints&quot;:{}},&quot;tenantId&quot;:&quot;\u003cuuid\u003e&quot;}}