Skip to main content

createCustomAttribute

form schema

Declare a new custom attribute in your organization.

Once declared, the attribute applies to resources created at the specified scope from this point on. Resources that already exist keep their attributes unchanged, and a required attribute does not have to be added to them before they can be updated. Requires the organization:manageCustomAttributes 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​