Logo of FrontifyDeveloper PortalArrow to the right
GraphQL Reference
Mutation

createCustomMetadataProperty():CreateCustomMetadataProperty

Create a new CustomMetadataProperty. RequiresRequires basic:write scope to be accessible and Brand or Project permission level EDIT.

All mutations have exactly one input field called input with a unique input and return type. This is useful to write mutations with variables, so there is always one single variable per mutation. This makes it easier to use and reuse them.

Input fields of CreateCustomMetadataPropertyInput
parentId: ID!

CustomMetadataProperty parent Id.

name: String!

CustomMetadataProperty display name.

CustomMetadataProperty type.

helpText: String = ""

CustomMetadataProperty help text.

isRequired: Boolean = false

Define if CustomMetadataProperty is required.

defaultValue: String

Set a CustomMetadataProperty default value. This setting will be ignored for properties that are not of SELECT or MULTISELECT type (use options for these cases instead). Applies to newly uploaded Assets only.

Position in the list of newly created CustomMetadataProperty.

Fields of CreateCustomMetadataProperty

The newly created CustomMetadataProperty.