Create menu item
Create a new menu item.
/menuSecurity
This operation accepts the following authorization requirements.
Request
bodyone ofrequiredOptions (2)
Properties (12)
categorystringrequiredAllowed values:"beverage"
Menu item category.
volumenumberrequiredSize of the beverage in milliliters.
containsCaffeinebooleanrequiredIndicates if the beverage contains caffeine.
createdAtstring:date-timerequiredCreated date.
updatedAtstring:date-timerequiredUpdated date.
idstringrequiredMenu item ID. Unique identifier prefixed with prd_.
objectstringrequiredAllowed values:"menuItem"
Entity name.
namestringrequiredMenu item name.
priceintegerrequiredPrice in cents.
photostring:binaryPhoto of the menu item. Must be a PNG image and less than 1MB.
photoUrlstring:uriPhoto URL of the menu item.
photoTextDescriptionstringProperties (11)
categorystringrequiredAllowed values:"dessert"
Menu item category.
caloriesnumberrequiredAmount of calories.
createdAtstring:date-timerequiredCreated date.
updatedAtstring:date-timerequiredUpdated date.
idstringrequiredMenu item ID. Unique identifier prefixed with prd_.
objectstringrequiredAllowed values:"menuItem"
Entity name.
namestringrequiredMenu item name.
priceintegerrequiredPrice in cents.
photostring:binaryPhoto of the menu item. Must be a PNG image and less than 1MB.
photoUrlstring:uriPhoto URL of the menu item.
photoTextDescriptionstringResponse
Menu item created successfully.
bodyone ofOptions (2)
Properties (12)
categorystringrequiredAllowed values:"beverage"
Menu item category.
volumenumberrequiredSize of the beverage in milliliters.
containsCaffeinebooleanrequiredIndicates if the beverage contains caffeine.
createdAtstring:date-timerequiredCreated date.
updatedAtstring:date-timerequiredUpdated date.
idstringrequiredMenu item ID. Unique identifier prefixed with prd_.
objectstringrequiredAllowed values:"menuItem"
Entity name.
namestringrequiredMenu item name.
priceintegerrequiredPrice in cents.
photostring:binaryPhoto of the menu item. Must be a PNG image and less than 1MB.
photoUrlstring:uriPhoto URL of the menu item.
photoTextDescriptionstringProperties (11)
categorystringrequiredAllowed values:"dessert"
Menu item category.
caloriesnumberrequiredAmount of calories.
createdAtstring:date-timerequiredCreated date.
updatedAtstring:date-timerequiredUpdated date.
idstringrequiredMenu item ID. Unique identifier prefixed with prd_.
objectstringrequiredAllowed values:"menuItem"
Entity name.
namestringrequiredMenu item name.
priceintegerrequiredPrice in cents.
photostring:binaryPhoto of the menu item. Must be a PNG image and less than 1MB.
photoUrlstring:uriPhoto URL of the menu item.
photoTextDescriptionstringBad request - invalid input parameters.
typestring:uri-referencerequiredURI reference that identifies the problem type.
titlestringrequiredShort summary of the problem type.
statusinteger:int32requiredHTTP status code generated by the origin server for this occurrence of the problem.
instancestring:uri-referenceURI reference that identifies the specific occurrence of the problem, e.g. by adding a fragment identifier or sub-path to the problem type. May be used to locate the root of this problem in the source code.
detailsobjectAdditional error details.
Unauthorized - authorization required.
typestring:uri-referencerequiredURI reference that identifies the problem type.
titlestringrequiredShort summary of the problem type.
statusinteger:int32requiredHTTP status code generated by the origin server for this occurrence of the problem.
instancestring:uri-referenceURI reference that identifies the specific occurrence of the problem, e.g. by adding a fragment identifier or sub-path to the problem type. May be used to locate the root of this problem in the source code.
detailsobjectAdditional error details.
Forbidden - insufficient permissions.
typestring:uri-referencerequiredURI reference that identifies the problem type.
titlestringrequiredShort summary of the problem type.
statusinteger:int32requiredHTTP status code generated by the origin server for this occurrence of the problem.
instancestring:uri-referenceURI reference that identifies the specific occurrence of the problem, e.g. by adding a fragment identifier or sub-path to the problem type. May be used to locate the root of this problem in the source code.
detailsobjectAdditional error details.
Conflict - entity already exists.
typestring:uri-referencerequiredURI reference that identifies the problem type.
titlestringrequiredShort summary of the problem type.
statusinteger:int32requiredHTTP status code generated by the origin server for this occurrence of the problem.
instancestring:uri-referenceURI reference that identifies the specific occurrence of the problem, e.g. by adding a fragment identifier or sub-path to the problem type. May be used to locate the root of this problem in the source code.
detailsobjectAdditional error details.
Internal server error.
typestring:uri-referencerequiredURI reference that identifies the problem type.
titlestringrequiredShort summary of the problem type.
statusinteger:int32requiredHTTP status code generated by the origin server for this occurrence of the problem.
instancestring:uri-referenceURI reference that identifies the specific occurrence of the problem, e.g. by adding a fragment identifier or sub-path to the problem type. May be used to locate the root of this problem in the source code.
detailsobjectAdditional error details.