Skip to content
v0.3

custom_field.archive

Archive a custom field (never delete — order snapshots reference the type).

  • Scope: custom_fields.write
  • System: no
  • Reachable from: POST /v1/commands/custom_field.archive (tenant credential) · MCP tool custom_field.archive · SDK client.call('custom_field.archive', …)
  • Events: custom_field.updated
{
"properties": {
"key": {
"minLength": 1,
"type": "string"
},
"owner_entity": {
"enum": [
"product",
"cart",
"cart_line",
"cart_customer",
"order",
"order_line",
"customer",
"category",
"store"
],
"type": "string"
}
},
"required": [
"owner_entity",
"key"
],
"type": "object"
}
{
"additionalProperties": false,
"properties": {
"archived": {
"type": "boolean"
},
"definition_id": {
"type": "string"
}
},
"required": [
"definition_id",
"archived"
],
"type": "object"
}

validation_failed (400) · unauthorized (401) · forbidden (403) · conflict (409) · internal (500)