Skip to main content

createCustomAttribute

form schema

Declare a new custom attribute in your organization.

Once declared, the attribute immediately applies to new resources at the specified scope. Existing resources are not retroactively validated. Requires the organization:manage action.

createCustomAttribute(
organizationId: ID!
input: CreateCustomAttributeInput!
): CustomAttributePayload

Form Schema

This mutation supports dynamic form generation using JSON Schema.

Loading schema...

Arguments

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

Your organization's unique identifier.

createCustomAttribute.input ● CreateCustomAttributeInput! non-null input {#input}

Declare a custom attribute key for your organization. Custom attributes control which user-defined attribute keys can be set on resources at each level of the hierarchy. System attributes (md-*) are auto-injected by Massdriver and do not need to be declared.

Type

CustomAttributePayload object