diff --git a/spec/marketing.json b/spec/marketing.json index 3ce3ea2..865c9d4 100644 --- a/spec/marketing.json +++ b/spec/marketing.json @@ -51218,8 +51218,160 @@ } } }, - "/connected-sites/{connected_site_id}/actions/enable-pixel": {}, - "/connected-sites/{connected_site_id}/actions/disable-pixel": {}, + "/connected-sites/{connected_site_id}/actions/enable-pixel": { + "post": { + "summary": "Enable pixel for connected site", + "description": "Enable the Mailchimp tracking pixel for a connected site.", + "operationId": "postConnectedSitesIdActionsEnablePixel", + "parameters": [ + { + "in": "path", + "name": "connected_site_id", + "x-title": "Connected Site Foreign ID", + "type": "string", + "required": true, + "description": "The unique identifier for the site." + } + ], + "responses": { + "204": { + "description": "Empty Response" + }, + "default": { + "description": "An error generated by the Mailchimp API.", + "schema": { + "type": "object", + "title": "Problem Detail Document", + "description": "An error generated by the Mailchimp API. Conforms to IETF draft 'draft-nottingham-http-problem-06'.", + "required": [ + "type", + "title", + "status", + "detail", + "instance" + ], + "properties": { + "type": { + "type": "string", + "title": "Problem Type", + "description": "An absolute URI that identifies the problem type. When dereferenced, it should provide human-readable documentation for the problem type.", + "example": "https://mailchimp.com/developer/marketing/docs/errors/" + }, + "title": { + "type": "string", + "title": "Error Title", + "description": "A short, human-readable summary of the problem type. It shouldn't change based on the occurrence of the problem, except for purposes of localization.", + "example": "Resource Not Found" + }, + "status": { + "type": "integer", + "title": "HTTP Status Code", + "description": "The HTTP status code (RFC2616, Section 6) generated by the origin server for this occurrence of the problem.", + "example": 404 + }, + "detail": { + "type": "string", + "title": "Error Message", + "description": "A human-readable explanation specific to this occurrence of the problem. [Learn more about errors](/developer/guides/get-started-with-mailchimp-api-3/#Errors).", + "example": "The requested resource could not be found." + }, + "instance": { + "type": "string", + "title": "Instance ID", + "description": "A string that identifies this specific occurrence of the problem. Please provide this ID when contacting support.", + "example": "995c5cb0-3280-4a6e-808b-3b096d0bb219" + } + } + } + } + }, + "deprecated": false, + "tags": [ + "connectedSites" + ], + "x-custom-config": { + "methodNameSnake": "enable_pixel", + "methodNameCamel": "enablePixel" + } + } + }, + "/connected-sites/{connected_site_id}/actions/disable-pixel": { + "post": { + "summary": "Disable pixel for connected site", + "description": "Disable the Mailchimp tracking pixel for a connected site.", + "operationId": "postConnectedSitesIdActionsDisablePixel", + "parameters": [ + { + "in": "path", + "name": "connected_site_id", + "x-title": "Connected Site Foreign ID", + "type": "string", + "required": true, + "description": "The unique identifier for the site." + } + ], + "responses": { + "204": { + "description": "Empty Response" + }, + "default": { + "description": "An error generated by the Mailchimp API.", + "schema": { + "type": "object", + "title": "Problem Detail Document", + "description": "An error generated by the Mailchimp API. Conforms to IETF draft 'draft-nottingham-http-problem-06'.", + "required": [ + "type", + "title", + "status", + "detail", + "instance" + ], + "properties": { + "type": { + "type": "string", + "title": "Problem Type", + "description": "An absolute URI that identifies the problem type. When dereferenced, it should provide human-readable documentation for the problem type.", + "example": "https://mailchimp.com/developer/marketing/docs/errors/" + }, + "title": { + "type": "string", + "title": "Error Title", + "description": "A short, human-readable summary of the problem type. It shouldn't change based on the occurrence of the problem, except for purposes of localization.", + "example": "Resource Not Found" + }, + "status": { + "type": "integer", + "title": "HTTP Status Code", + "description": "The HTTP status code (RFC2616, Section 6) generated by the origin server for this occurrence of the problem.", + "example": 404 + }, + "detail": { + "type": "string", + "title": "Error Message", + "description": "A human-readable explanation specific to this occurrence of the problem. [Learn more about errors](/developer/guides/get-started-with-mailchimp-api-3/#Errors).", + "example": "The requested resource could not be found." + }, + "instance": { + "type": "string", + "title": "Instance ID", + "description": "A string that identifies this specific occurrence of the problem. Please provide this ID when contacting support.", + "example": "995c5cb0-3280-4a6e-808b-3b096d0bb219" + } + } + } + } + }, + "deprecated": false, + "tags": [ + "connectedSites" + ], + "x-custom-config": { + "methodNameSnake": "disable_pixel", + "methodNameCamel": "disablePixel" + } + } + }, "/conversations": { "get": { "summary": "List conversations",