Update application
client.zones.applications.update(stringid, ApplicationUpdateParams { zoneId, description, identifier, 3 more } params, RequestOptionsoptions?): Application { id, created_at, dependencies_count, 10 more }
PATCH/zones/{zoneId}/applications/{id}
Updates an Application's configuration and metadata
Parameters
id: string
Returns
Update application
import KeycardAPI from '@keycardai/api';
const client = new KeycardAPI();
const application = await client.zones.applications.update('id', { zoneId: 'zoneId' });
console.log(application.id);{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"dependencies_count": 0,
"identifier": "x",
"name": "x",
"organization_id": "organization_id",
"owner_type": "platform",
"slug": "slug",
"updated_at": "2019-12-27T18:11:19.117Z",
"zone_id": "zone_id",
"description": "description",
"metadata": {
"docs_url": "https://example.com"
},
"protocols": {
"oauth2": {
"post_logout_redirect_uris": [
"https://example.com"
],
"redirect_uris": [
"https://example.com"
]
}
}
}Returns Examples
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"dependencies_count": 0,
"identifier": "x",
"name": "x",
"organization_id": "organization_id",
"owner_type": "platform",
"slug": "slug",
"updated_at": "2019-12-27T18:11:19.117Z",
"zone_id": "zone_id",
"description": "description",
"metadata": {
"docs_url": "https://example.com"
},
"protocols": {
"oauth2": {
"post_logout_redirect_uris": [
"https://example.com"
],
"redirect_uris": [
"https://example.com"
]
}
}
}