fob-mdm fields

Fields are an object's attributes, such as Name or GSTIN. A field's key can't change, and a field is retired rather than deleted. Commands that change one field take its id, shown by fields list.

fob-mdm fields <action> [target] [options]
ActionDescription
listList an object's fields in display order
showShow one field
createAdd a field to an object
editChange a field's label, type or settings (the key can't change)
deleteRetire a field: it keeps its values and history but takes no new values

fields list

List an object's fields in display order.

fob-mdm fields list --object <object> [options]
Argument or optionRequiredDefaultDescription
--object <object>YesObject id or slug.
--include-retiredInclude retired fields.
--page <n>1Page number.
--limit <n>100Rows per page (max 500).
--allFetch every page (up to 15000 rows).
--jsonPrint the raw JSON response.
fob-mdm fields list --object vendor
fob-mdm fields list --object vendor --include-retired
ID  KEY        LABEL      TYPE  REQUIRED  IDENTITY  RETIRED
-----------------------------------------------------------
10  name       Name       text  yes       —         —
11  gstin      GSTIN      text  —         yes       —
12  bank_ifsc  Bank IFSC  text  —         —         —

API: List Fields

fields show

Show one field.

fob-mdm fields show <id> [options]
Argument or optionRequiredDefaultDescription
<id>YesField id.
--jsonPrint the raw JSON response.
fob-mdm fields show 12

API: Get Field

fields create

Add a field to an object.

fob-mdm fields create --object <object> --key <key> --label <label> [options]
Argument or optionRequiredDefaultDescription
--object <object>YesObject id or slug.
--key <key>YesMachine name, e.g. bank_ifsc. Can't be changed later.
--label <label>YesDisplay name, e.g. Bank IFSC.
--type <type>textField type. One of text, number, date, boolean.
--requiredEvery record should have it.
--identityIdentifies the same entity across apps, e.g. GSTIN.
--jsonPrint the raw JSON response.
fob-mdm fields create --object vendor --key name --label Name --required
fob-mdm fields create --object vendor --key gstin --label GSTIN --identity
fob-mdm fields create --object vendor --key bank_ifsc --label 'Bank IFSC'

The identity field is how an app's records are matched to golden records when an integration pulls, so mark one field per object. Pulling fails until the object has one.

API: Create Field

fields edit

Change a field's label, type or settings (the key can't change).

fob-mdm fields edit <id> [options]
Argument or optionRequiredDefaultDescription
<id>YesField id.
--label <label>Display name.
--type <type>Field type. One of text, number, date, boolean.
--requiredMark as required.
--no-requiredMark as optional.
--identityMark as the identity field.
--no-identityUnmark as the identity field.
--jsonPrint the raw JSON response.
fob-mdm fields edit 12 --label 'Bank IFSC code'
fob-mdm fields edit 12 --required

API: Update Field

fields delete

Retire a field: it keeps its values and history but takes no new values.

fob-mdm fields delete <id> [options]
Argument or optionRequiredDefaultDescription
<id>YesField id.
-y, --yesSkip the confirmation.
fob-mdm fields delete 12 --yes

Retires the field. Its values and history stay, but it takes no new values: setting it answers FIELD_RETIRED.

API: Retire Field

Every command also takes --profile <name> and --help. See Command-line Interface.

Using an AI agent? Give it the raw Markdown of this page, or the docs index.