API Keys

Update an API key

Updates an API key's name, workspaces, or enabled status.

put/v1/keys/{keyID}

Request

  • Base URL
    https://ai.liara.ir
  • URL
    https://ai.liara.ir/v1/keys/{keyID}
  • Auth
    API key in header Authorization

Path parameters

keyIDstring required

The API key ID

Request body

namestring

New name for the API key

workspacesstring[]

New array of workspace names

enabledboolean

Enable or disable the API key

Response

Key updated

messagestring

Example response

{
  "message": "key updated."
}

Changes

No recorded changes to this operation across all 4 revisions of this API.