Updates a zone's configuration (partial update)
Parameters
zoneID string
Returns
Update zone
package main
import (
"context"
"fmt"
"github.com/keycardai/keycard-go"
)
func main() {
client := keycard.NewClient(
)
zone, err := client.Zones.Update(
context.TODO(),
"zoneId",
keycard.ZoneUpdateParams{
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", zone.ID)
}
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"name": "x",
"organization_id": "organization_id",
"protocols": {
"oauth2": {
"authorization_endpoint": "https://example.com",
"authorization_server_metadata": "https://example.com",
"dcr_enabled": true,
"issuer": "https://example.com",
"jwks_uri": "https://example.com",
"pkce_required": true,
"redirect_uri": "https://example.com",
"registration_endpoint": "https://example.com",
"token_endpoint": "https://example.com"
},
"openid": {
"provider_configuration": "https://example.com",
"userinfo_endpoint": "https://example.com"
}
},
"slug": "slug",
"updated_at": "2019-12-27T18:11:19.117Z",
"default_mcp_gateway_application_id": "default_mcp_gateway_application_id",
"default_resource_id": "default_resource_id",
"description": "description",
"encryption_key": {
"arn": "x",
"type": "aws"
},
"login_flow": "default",
"permissions": {
"zones": {
"read": true,
"update": true,
"delete": false,
"create": false
},
"applications": {
"read": true,
"list": true,
"create": false
}
},
"requires_invitation": true,
"user_identity_provider_id": "user_identity_provider_id"
}Returns Examples
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"name": "x",
"organization_id": "organization_id",
"protocols": {
"oauth2": {
"authorization_endpoint": "https://example.com",
"authorization_server_metadata": "https://example.com",
"dcr_enabled": true,
"issuer": "https://example.com",
"jwks_uri": "https://example.com",
"pkce_required": true,
"redirect_uri": "https://example.com",
"registration_endpoint": "https://example.com",
"token_endpoint": "https://example.com"
},
"openid": {
"provider_configuration": "https://example.com",
"userinfo_endpoint": "https://example.com"
}
},
"slug": "slug",
"updated_at": "2019-12-27T18:11:19.117Z",
"default_mcp_gateway_application_id": "default_mcp_gateway_application_id",
"default_resource_id": "default_resource_id",
"description": "description",
"encryption_key": {
"arn": "x",
"type": "aws"
},
"login_flow": "default",
"permissions": {
"zones": {
"read": true,
"update": true,
"delete": false,
"create": false
},
"applications": {
"read": true,
"list": true,
"create": false
}
},
"requires_invitation": true,
"user_identity_provider_id": "user_identity_provider_id"
}