customerBuiltInFieldRules
Requires a customer (portal or buyer app) session.
Lists, for every built-in field and every form that has it, whether the organization hides it, offers it or requires it, for the portal's and the buyer app's forms. Requires a signed-in buyer.
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
query CustomerBuiltInFieldRules {
customerBuiltInFieldRules {
defaultRule
field
rule
surface
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query CustomerBuiltInFieldRules {\n customerBuiltInFieldRules {\n defaultRule\n field\n rule\n surface\n }\n}"
}
EOF
Response:
{
"data": {
"customerBuiltInFieldRules": [
{
"defaultRule": "string",
"field": "string",
"rule": "string",
"surface": "string"
}
]
}
}
customerBuiltInFieldRules: [BuiltInFieldRule!]!
Type
BuiltInFieldRule object
Whether one built-in field is hidden, optional or required on one form.