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.
The console's session cookie. Admin requests from the console also send x-console-request: 1.
In: cookie
Path Parameters
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" } } } }'{ "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" ], "verify_on": "every_request" } }, "routing": { "providers": { "mode": "all" }, "model_rewrites": { "property1": "string", "property2": "string" } }, "limits": {}, "endpoints": {} }, "status": "active", "created_at": "string", "updated_at": "string", "warnings": [ { "code": "string", "message": "string", "until": "string", "docs_url": "string" } ] }}Delete an application and its associated operational data
Delete an application and its associated operational data (DELETE /v1/admin/apps/{app}) in the App AI Gateway API.
Validate an edit of an application without saving it
Validate an edit of an application without saving it (POST /v1/admin/apps/{app}/validate) in the App AI Gateway API.