> This page is for Developer.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.bigcommerce.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.bigcommerce.com/_mcp/server.

# CreateMetafieldInput

GraphQL input

Reference: https://docs.bigcommerce.com/developer/api-reference/graphql/admin/types/inputs/create-metafield-input

## Fields

- `namespace` — Namespace for the metafield.
- `resourceId` — The unique identifier for the resource with which the metafield is associated.
- `key` — The name of the metafield.
- `value` — Value of the metafield.
- `description` — Description of the metafield.
- `permissionSet` — Determines the visibility and writeability of the field by other API consumers.

## Definition

```graphql
input CreateMetafieldInput {
  namespace: String!
  resourceId: String
  key: String!
  value: String!
  description: String
  permissionSet: MetafieldsPermissionSet!
}
```