Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Feature/1.1 #14

Open
wants to merge 3 commits into
base: 1.0
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 40 additions & 2 deletions resources/sfmc-openapi-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"info": {
"title": "Marketing Cloud REST API",
"description": "Marketing Cloud's REST API is our newest API. It supports multi-channel use cases, is much more lightweight and easy to use than our SOAP API, and is getting more comprehensive with every release.",
"version": "1.0.0",
"version": "1.1.0",
"contact": {
"name": "MC SDK Team",
"email": "[email protected]"
Expand Down Expand Up @@ -199,6 +199,22 @@
}
},
"operationId": "createCampaign"
},
"get":{
"tags": [
"campaign"
],
"operationId": "getAllCampaigns",
"summary": "getAllCampaigns",
"description": "Gets all campaigns.",
"responses":{
"200": {
"description": "All Campaigns successfully retrieved",
"schema": {
"$ref": "#/definitions/GetAllCampaignsResponse"
}
}
}
}
},
"/hub/v1/campaigns/{id}": {
Expand Down Expand Up @@ -1607,8 +1623,30 @@
}
}
},
"EmailDefinition": {
"GetAllCampaignsResponse": {
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"$ref": "#/definitions/Campaign"
}
},
"count": {
"description": "Number of pages",
"type": "integer"
},
"page": {
"description": "Page number to return.",
"type": "integer"
},
"pageSize": {
"description": "Number of campaigns, which are array elements, to return per paged response.",
"type": "integer"
}
}
},
"EmailDefinition": { "type": "object",
"required": [
"definitionKey",
"name",
Expand Down