High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.
JavaScript campaigncampaign-managementemail-marketingemail-subscriptionlistmonkmailing-listnewsletternewsletter-managementnewsletter-softwareself-hostedsms-gatewaysmtptransactional-emails
Update OpenAPI specification (#2581)
Junglei Kim66d7413bfb32
diff --git a/docs/swagger/collections.yaml b/docs/swagger/collections.yamlindex 42cb7e04..de988eb0 100644--- a/docs/swagger/collections.yaml+++ b/docs/swagger/collections.yaml@@ -1134,8 +1134,8 @@ paths:/import/subscribers/logs:get:- description: returns import statistics- operationId: getImportSubscriberStats+ description: returns import logs from an ongoing import+ operationId: getImportSubscriberLogstags:- Importresponses:@@ -1769,6 +1769,28 @@ paths:type: arrayitems:$ref: "#/components/schemas/Template"+ post:+ description: handles template creation+ operationId: createTemplate+ tags:+ - Templates+ requestBody:+ description: new template info+ required: true+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/NewTemplate"+ responses:+ "200":+ description: response+ content:+ application/json:+ schema:+ type: object+ properties:+ data:+ $ref: "#/components/schemas/Template""/templates/{id}":get:@@ -1799,7 +1821,35 @@ paths:properties:data:$ref: "#/components/schemas/Template"-+ put:+ description: handles template modification+ operationId: updateTemplateById+ tags:+ - Templates+ parameters:+ - in: path+ name: id+ required: true+ description: The id value of the template you want to update.+ schema:+ type: integer+ requestBody:+ description: updated template info+ required: true+ content:+ application/json:+ schema:+ $ref: "#/components/schemas/UpdateTemplate"+ responses:+ "200":+ description: response+ content:+ application/json:+ schema:+ type: object+ properties:+ data:+ $ref: "#/components/schemas/Template"delete:description: handles deletion of templatesoperationId: deleteTemplateById@@ -4033,10 +4083,20 @@ components:type: stringfilename:type: string+ content_type:+ type: stringcreated_at:type: stringthumb_url:type: string+ thumb_uri:+ type: string+ provider:+ type: string+ meta:+ type: object+ url:+ type: stringuri:type: string@@ -4053,11 +4113,59 @@ components:type: stringbody:type: string+ body_source:+ type: string+ subject:+ type: stringtype:type: stringis_default:type: boolean+ NewTemplate:+ type: object+ required:+ - name+ - type+ - body+ properties:+ name:+ type: string+ description: Name of the template+ type:+ type: string+ enum: [campaign, campaign_visual, tx]+ description: Type of the template+ subject:+ type: string+ description: Subject line for the template (only for tx)+ body_source:+ type: string+ description: JSON source for the email-builder template (only for campaign_visual)+ body:+ type: string+ description: HTML body of the template++ UpdateTemplate:+ type: object+ properties:+ name:+ type: string+ description: Name of the template+ type:+ type: string+ enum: [campaign, campaign_visual, tx]+ description: Type of the template+ subject:+ type: string+ description: Subject line for the template (only for tx)+ body_source:+ type: string+ description: JSON source for the email-builder template (only for campaign_visual)+ body:+ type: string+ description: HTML body of the template+TransactionalMessage:type: objectproperties: