v22

latestOpenAPI 3.0.0raw.githubusercontent.com2026-07-01140308542.4 KB
Resources

Update resource

Updates a Resource's configuration and metadata

patch/zones/{zoneId}/resources/{id}

Path parameters

zoneIdstring required

Zone ID

idstring required

Resource ID

Request body

namestring safe-text

Human-readable name. Must not contain HTML tags (e.g. <script>, <div>) or control characters.

descriptionstring safe-text nullable

Human-readable description. Must not contain HTML tags (e.g. <script>, <div>) or control characters.

scopesstring[] nullable

Scopes supported by the resource (set to null to unset)

identifierstring safe-text

User specified identifier, unique within the zone. Must not contain HTML tags (e.g. <script>, <div>) or control characters.

credential_provider_idstring nullable

ID of the credential provider to associate with the resource (set to null to unset)

application_idstring nullable

ID of the application that provides this resource (set to null to unset)

application_type'native' | 'web'

The expected type of client for this credential. Native clients must use localhost URLs for redirect_uris or URIs with custom schemes. Web clients must use https URLs and must not use localhost as the hostname.

prefixboolean

When true, the resource identifier is treated as a URI prefix, protecting all URLs that share the identifier as a prefix.

credential_lifetime_secondsinteger nullable

Credential lifetime override in seconds. Set to null to clear the override and use the default.

Response

A Resource is a system that exposes protected information or functionality. It requires authentication of the requesting actor, which may be a user or application, before allowing access.

idstring required

Unique identifier of the resource

organization_idstring required

Organization that owns this resource

zone_idstring required

Zone this resource belongs to

slugstring required

URL-safe identifier, unique within the zone

identifierstring required

User specified identifier, unique within the zone

namestring required

Human-readable name

descriptionstring nullable

Human-readable description

scopesstring[] nullable

Scopes supported by the resource

credential_provider_idstring

ID of the credential provider for this resource

application_idstring

ID of the application that provides this resource

application_type'native' | 'web' required

The expected type of client for this credential. Native clients must use localhost URLs for redirect_uris or URIs with custom schemes. Web clients must use https URLs and must not use localhost as the hostname.

prefixboolean required

When true, the resource identifier is treated as a URI prefix, protecting all URLs that share the identifier as a prefix at path/query/fragment boundaries. Protocol and hostname must match exactly. When multiple prefix resources satisfy an identifier query, the resource with the longest prefix is matched.

credential_lifetime_secondsinteger nullable

Credential lifetime override in seconds. When set, overrides the default credential lifetime for this resource. When absent, the default from the provider or zone is used.

when_accessingstring[]

List of resource IDs that, when accessed, make this dependency available. Only present when this resource is returned as a dependency.

owner_type'platform' | 'customer' required

Who owns this resource. Platform-owned resources cannot be modified via API.

created_atstring date-time required

Entity creation timestamp

updated_atstring date-time required

Entity update timestamp