API referenceAdmin applications
Update an application
Requires revision in the body, the one the application was read at; a stale revision answers 409 app_revision_conflict and an absent one 400 app_revision_required. Updates an existing application in place. It never creates one: an id none of your applications holds answers 404 app_not_found, and nothing is written. Applications are created only by POST /v1/admin/apps, which assigns the id.
agw_identity_auth.session_token<token>
The console's session cookie. Admin requests from the console also send x-console-request: 1.
In: cookie
Path Parameters
app*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/v1/admin/apps/string" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "config": { "authentication": { "type": "apple_app_attest", "end_user": { "source": "issuer", "issuer": { "jwks_url": "http://example.com", "issuer": "string", "audience": "string", "user_id_claim": "string", "required_claims": [ { "path": "string" } ], "max_token_lifetime_seconds": 1 } }, "app_attest": { "team_id": "string", "bundle_id": "string" } }, "routing": { "providers": { "mode": "all" }, "model_rewrites": { "property1": "string", "property2": "string" } } }, "revision": 1 }'{ "app": { "revision": 1, "id": "string", "name": "string", "config": { "authentication": { "type": "apple_app_attest", "end_user": { "source": "issuer", "issuer": { "jwks_url": "http://example.com", "issuer": "string", "audience": "string", "user_id_claim": "string", "token_header": "string", "required_claims": [ { "path": "string", "contains": "string", "equals": "string" } ], "max_token_lifetime_seconds": 1, "provider": "firebase", "entitlement": "revenuecat" } }, "app_attest": { "team_id": "string", "bundle_id": "string", "environments": [ "production" ] } }, "routing": { "providers": { "mode": "all", "selected": { "property1": { "allowed_paths": [ "string" ], "allowed_models": [ "string" ], "max_output_tokens": 1 }, "property2": { "allowed_paths": [ "string" ], "allowed_models": [ "string" ], "max_output_tokens": 1 } } }, "model_rewrites": { "property1": "string", "property2": "string" } }, "limits": { "per_user": { "requests": { "per_minute": 1, "per_day": 1 }, "spending": { "monthly_usd": 0 } }, "per_app": { "requests": { "per_minute": 1, "per_day": 1 }, "spending": { "monthly_usd": 0 } } }, "endpoints": { "property1": { "provider": "string", "model": "string", "api_style": "responses", "params": { "property1": null, "property2": null }, "max_output_tokens": 1, "fallback": [ { "provider": "string", "model": "string" } ] }, "property2": { "provider": "string", "model": "string", "api_style": "responses", "params": { "property1": null, "property2": null }, "max_output_tokens": 1, "fallback": [ { "provider": "string", "model": "string" } ] } } }, "status": "active", "created_at": "string", "updated_at": "string" }, "resolved": { "property1": null, "property2": null }, "config_error": "string"}