Zum Hauptinhalt springen

Update a key for a project

PUT/projects/{projectId}/ai-hosting-keys/{keyId}/
v2
PUT
ai-hosting-project-update-key

Request

  • projectIdstring
    required
  • keyIdstring
    required

Responses

application/json
  • containerMetaobject
    • containerIdstring
    • errorMessagestring
    • ingressIdstring
    • stackIdstring
    • statusstring (one of: created, requested, failed)
      required
  • customerIdstring
  • isBlockedboolean
    required

    Indicates whether the key is blocked.

  • keystring
    required

    The secret API key which is required for authentication with the AI hosting.

  • keyIdstring
    required

    Auto generated uuid to identify keys in requests.

  • modelsarray of string
    required

    An array of LLM model identifiers enabled for this key.

    • Array[
      • *string
      ]
  • namestring
    required
  • projectIdstring
  • rateLimitobject
    required

    The number of allowed requests per unit. Limits are shared across all keys within the same project.

    • allowedRequestsPerUnitinteger
      required
    • unit"minute"
      required
  • tokenUsageobject
    required
    • planLimitinteger (≥ -1, int64)
      required
    • usedinteger (≥ 0, int64)
      required

Usage examples

$ curl \
--fail \
--location \
-X PUT \
-d '{"createWebuiContainer":true,"name":"string"}' \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
-H 'Content-Type: application/json' \
https://api.mittwald.de/v2/projects/string/ai-hosting-keys/string