CapabilityEndpoints

Defines all network endpoints for the capabilities API.

Each case maps to a specific HTTP method and URL path under /v1/accounts/{accountId}/capabilities.

Inheritors

Types

Link copied to clipboard
data class DisableCapabilityWith(val accountId: String, val name: String) : CapabilityEndpoints

Disables a single capability by name for the given account (DELETE).

Link copied to clipboard
data class GetCapabilities(val accountId: String) : CapabilityEndpoints

Retrieves all capabilities for the given account (GET).

Link copied to clipboard
data class GetCapabilityWith(val accountId: String, val name: String) : CapabilityEndpoints

Retrieves a single capability by name for the given account (GET).

Link copied to clipboard
data class RequestCapabilities(val accountId: String) : CapabilityEndpoints

Requests one or more capabilities for the given account (POST).

Properties

Link copied to clipboard

Optional extra HTTP headers to attach to the request (e.g. Accept: application/json). Defaults to empty. Applied after the standard Frame Authorization/User-Agent headers but before Content-Type (set on POST/PATCH), so an entry may override the former but not the latter. Prefer supplemental headers like Accept; don't rely on this to set auth headers.

Link copied to clipboard
open override val endpointURL: String

The relative URL path for this endpoint.

Link copied to clipboard
open override val httpMethod: String

The HTTP method for this endpoint (GET, POST, or DELETE).

Link copied to clipboard
open override val queryItems: List<QueryItem>? = null

Query parameters for this endpoint; always null for capability endpoints.