Skip to main content

Patch Store Facebook / Meta Catalog Settings (v1)

Method & Path

PATCH /api/v1/workspace/:workspaceId/storefront/store/facebook-catalog

Actual backend path: PATCH /v1/workspace/:workspaceId/storefront/store/facebook-catalog

Description

Updates Meta Catalog feed and Pixel settings for the workspace storefront. When feedEnabled is set to true and no feed token exists yet, the API generates a token, stores only its hash, and may return plainFeedToken once in the response for copying the full feed URL.

Authentication

Required — JWT workspace token and staff context.

Required Permissions: store.manage

Personas: Workspace Owner and Staff with store.manage.

Headers

HeaderRequiredDescription
AuthorizationYesBearer <token>
Content-TypeYesapplication/json
X-Staff-IdIf applicableStaff member performing the action

Path Parameters

ParameterTypeRequiredDescription
workspaceIdstringYesWorkspace id

Query Parameters

None

Request Body

At least one field required.

{
"feedEnabled": true,
"brandOverride": "My Brand",
"pixelId": "123456789012345",
"pixelEnabled": true
}
FieldTypeRequiredDescription
feedEnabledbooleanNoEnable/disable public CSV feed
brandOverridestring | nullNoCatalog brand field; null clears override (store name used)
pixelIdstring | nullNoDigits-only Meta Pixel id; null clears
pixelEnabledbooleanNoWhen true with pixelId, public store JSON includes facebookPixelId for the storefront web app

Response 200 OK

{
"store": { },
"plainFeedToken": "optional-one-time-secret"
}

plainFeedToken is present only when a new token was generated (e.g. first enable).

Common Errors

  • 400 Bad Request: Empty body or validation error
  • 401 Unauthorized: Missing/invalid token
  • 403 Forbidden: Missing store.manage
  • 404 Not Found: Store not created
  • 500 Internal Server Error: Server error