POST

Publish Draft Catalog


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Publishes a draft catalog to the live site by replacing the existing catalog.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Restaurant Catalogs
Manage Restaurants - all permissions
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/restaurants/v3/draft-catalogs/{catalogId}/publish

Path Params
catalogIdstringRequired

ID of the draft catalog to publish.

Response Object
catalogCatalog

Published catalog.

Publish Draft Catalog
Request
cURL
curl -X POST \ 'https://www.wixapis.com/restaurants/v3/draft-catalogs/4d088f16-d341-44b2-ac69-ae8f3e8897fd/publish' \ -H 'Content-Type: application/json' \ -H 'Authorization: <AUTH>' \
Response
JSON
{ "catalog": { "id": "0e5a71f5-6eca-4815-a249-0151a43bab93", "locationId": "b4c9914f-c248-479f-ae9a-acaad4dc5f96", "archived": false, "draftPublishedDate": "2022-01-17T13:31:32.563Z" } }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?