playground

Replace Playground Favorite Models

Changed on

Replace the caller's pin list for one workspace.

A replace rather than a toggle, because the order is part of the value and the client already holds the list it is rendering. Two tabs racing therefore resolve to one of the two lists rather than to an interleaving neither of them showed. Model keys are not validated against the catalog: a pinned model that leaves the catalog simply stops appearing in the picker, and refusing the write would make a stale pin unremovable.

put/api/v1/playground/favorite-models

Request

  • The document declares no server URL.
  • Auth: one of:
    • API key in header Otari-Key
    • API key in header x-api-key

Query parameters

workspace_idstring uuid nullable

Workspace to act in. Defaults to the caller's organization's default workspace. A workspace the caller is not a member of answers 404, as a nonexistent one does.

Request body

model_keysstring[] required

Response

Successful Response

model_keysstring[] required

Changes