PixelDance
V1AdminModelsId

Update model config

PUT
/v1/admin/models/{id}

Authorization

cookieAuth
better-auth.session_token<token>

Session cookie set by Better Auth. Login via the app to obtain.

In: cookie

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PUT "http://localhost:3002/v1/admin/models/string" \  -H "Content-Type: application/json" \  -d '{}'
{
  "success": true,
  "revalidate": [
    "string"
  ]
}