POST

인증

x-api-key
string
header
필수

본문

application/json
name
string
필수

Human-readable name for the environment

config
object

Environment configuration

description
string | null

Optional description of the environment

metadata
object

User-provided metadata key-value pairs

scope
enum<string> | null

The visibility scope for this environment. 'organization' makes the environment visible to all accounts. 'account' restricts visibility to the owning account only. API organizations support only 'organization'; 'account' is rejected. If not specified, defaults based on organization type.

사용 가능한 옵션:
organization,
account,
null

응답

Success.

Unified Environment resource for both cloud and self-hosted environments.

id
string
필수

Environment identifier (e.g., 'env_...')

archived_at
string | null
필수

RFC 3339 timestamp when environment was archived, or null if not archived

config
object
필수

Environment configuration (either Anthropic Cloud or self-hosted)

created_at
string
필수

RFC 3339 timestamp when environment was created

description
string | null
필수

User-provided description for the environment; null when unset

metadata
object
필수

User-provided metadata key-value pairs

name
string
필수

Human-readable name for the environment

type
string
필수

The type of object (always 'environment')

Allowed value: "environment"
updated_at
string
필수

RFC 3339 timestamp when environment was last updated

scope
enum<string>

The visibility scope for this environment. 'organization' means visible to all accounts. 'account' means visible only to the owning account.

사용 가능한 옵션:
organization,
account