Admin APIAnalytics
Update the tracking configuration
Partial update: only fields sent are written, "" clears one. Answers
the configuration as getMarketingConfig does, secrets masked.
Authorization
bearer_auth AuthorizationBearer <token>
Authorization: Bearer <token>. Either a session access token from POST /auth/login (refresh it with POST /auth/refresh) or a store API token (mobi_st_…). A store API token works only for the store it was issued in, and can do at most what its issuing user can there, narrowed to the scopes it was issued with.
In: header
Path Parameters
store_id*string
Store id
Format
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/stores/497f6eca-6276-4993-bfeb-53cbbbba6f08/marketing/config" \ -H "Content-Type: application/json" \ -d '{}'{
"google_ads_configured": true,
"google_ads_conversion_action_id": "string",
"google_ads_conversion_id": "string",
"google_ads_conversion_label": "string",
"google_ads_customer_id": "string",
"meta_ad_account_id": "string",
"meta_ads_token_configured": true,
"meta_capi_configured": true,
"meta_catalog_configured": true,
"meta_catalog_id": "string",
"meta_pixel_id": "string",
"meta_test_event_code": "string"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}