subscribe-newsletter
Method: POST
Path: /campaigns/newsletter-subscribe
Tags: Campaigns
Summary
Subscribe to newsletter
Description
Subscribe to newsletter
TypeScript Definition
typescript
"subscribe-newsletter": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
requestBody: {
content: {
"application/json": {
email: string;
};
};
};
responses: {
/** @description OK */
200: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": {
message?: string;
success?: boolean;
};
};
};
400: components["responses"]["BadRequest"];
401: components["responses"]["Unauthorized"];
};
};Component References
| Reference | Resolves To |
|---|---|
components["responses"]["BadRequest"] | BadRequest |
components["responses"]["Unauthorized"] | Unauthorized |
Request Body
Content Types: application/json
Responses
200
OK
400
Bad request
401
Not authorized for given operation on the Resource
OpenAPI Definition
json
{
"tags": [
"Campaigns"
],
"operationId": "subscribe-newsletter",
"summary": "Subscribe to newsletter",
"description": "Subscribe to newsletter",
"externalDocs": {
"url": "https://llm-docs.commercengine.io/storefront/operations/subscribe-newsletter",
"description": "API reference for the subscribe-newsletter operation"
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"email"
],
"properties": {
"email": {
"type": "string"
}
}
}
}
}
},
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
},
"success": {
"type": "boolean"
}
}
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
}
},
"security": [
{
"Authorization": []
}
],
"x-speakeasy-group": "campaigns",
"x-speakeasy-ignore": true,
"x-speakeasy-name-override": "subscribeNewsletter"
}Auto-generated from OpenAPI spec and TypeScript definitions