seedDefaultMenus
Requires permission settings:appearance:create.
Adds the standard set of menus the organization is missing, skipping any whose name already exists, without regard to case or padding. Needs the appearance settings create permission.
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
mutation SeedDefaultMenus {
seedDefaultMenus
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation SeedDefaultMenus {\n seedDefaultMenus\n}"
}
EOF
Response:
{
"data": {
"seedDefaultMenus": true
}
}
seedDefaultMenus: Boolean!
Type
Boolean scalar
The Boolean scalar type represents true or false.