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