Skip to main content

setEnvironmentDefault

Set a resource as the default of its type for an environment.

All instances in the environment that require this resource type will automatically inherit it. Only one resource per type can be the default -- remove the existing default first with removeEnvironmentDefault to change it.

setEnvironmentDefault(
organizationId: ID!
environmentId: ID!
resourceId: ID!
): EnvironmentDefaultPayload

Arguments

setEnvironmentDefault.organizationId ● ID! non-null scalar {#organization-id}

Your organization's unique identifier.

setEnvironmentDefault.environmentId ● ID! non-null scalar {#environment-id}

The identifier of the environment to set the default on.

setEnvironmentDefault.resourceId ● ID! non-null scalar {#resource-id}

The identifier of the resource to set as the default for its type.

Type

EnvironmentDefaultPayload object