Are metafieldDefinitionPin arguments correct in API docs?

Are metafieldDefinitionPin arguments correct in API docs?

pepsimax2k
Shopify Partner
15 0 1

https://shopify.dev/docs/api/admin-graphql/unstable/mutations/metafielddefinitionpin

 

Shows identifier as only argument, and definitionId as deprecated. Yet, the code example shows definitionId, and trying to use identifier gives the below errors. So err... are the docs wrong? Did someone tag the wrong argument as deprecated?

 

   "message": "Field 'metafieldDefinitionPin' is missing required arguments: definitionId",
"message": "Field 'metafieldDefinitionPin' doesn't accept argument 'identifier'",

{% action "shopify" %}
  mutation {
    metafieldDefinitionPin (
      identifier: {
         
namespace: "MY_NAMESPACE",
          key: "MY_KEY",
          ownerType: PRODUCTVARIANT
      
}
   )
{
      pinnedDefinition {
        name
        key
        namespace
        pinnedPosition
      }
    }
  }
{% endaction %}
Replies 0 (0)