Create a shared master item template

Creates a MasterItem in the platform-wide template library shared by every organization and returns its id; it adds nothing to any organization's catalog. Only platform administrators may call it. Each call inserts a new template, so a retry creates a duplicate. To put an item on a menu use catalog.addCatalogItem, optionally passing masterItemId as lineage. A write naming a Wallet design image that is being or already deleted is refused with CONFLICT and refusal mediaDraftImageExpired, and stores nothing. Refused with FORBIDDEN as paywallLocked when the caller is an Owner or Manager of a business the merchant Paywall locks: one with no verified subscription that has taken 5 orders while the Paywall's rollout reaches it, an order counting from its first saved line, whether or not it is paid or completed, until it is archived or cancelled before activation. Nothing is read or written; a verified subscription lifts the lock.

post/api/public/v1/catalog/createMasterItem

Request

  • Base URL
    https://app.fortuneos.ai
  • Auth
    none declared

Request body

object required
name, string required
unit, 'piece' | 'gram' | 'kilogram' | 'milliliter' | 'liter' required
quantity, number required
calories, number nullable
proteins, number nullable
fats, number nullable
carbs, number nullable
imageUrl, string uri nullable
videoUrl, string uri nullable

Response

OK

unknown required

Changes

No recorded changes to this operation across all 243 revisions of this API.