Skip to main content

Create Menu Metafield

API operation: Open the endpoint in Scalar

Use POST /business/{business_id}/menus/{menu_id}/metafields to create a menu metafield. The operation documented here is MenuMetafield.register.

The documented schema requires administrator or business-manager authentication. Before creating a metafield, verify that menu_id belongs to the route business; do not assume the route enforces this parent relationship.

The supported value_type values are integer, decimal, boolean, text, and json. See List menu metafields.

OpenAPI reference​

Operation: POST /business/{business_id}/menus/{menu_id}/metafields

Path parameters

NameTypeRequiredDescription
business_idintegerYes—
menu_idintegerYes—

Request body fields

NameTypeRequired
modelanyYes
object_idintegerYes
valueanyYes
value_typestringYes

Responses

CodeDescription
200OK (Envelope)
400Bad Request (ErrorResponse)
401Unauthorized
404Not Found
429Too Many Requests (ErrorResponse)
500Internal Server Error (ErrorResponse)
503Service Unavailable (ErrorResponse)
Open this operation in the API reference