POST Agents/Workflow/SaveEmailFlow
Some tooltip text!
• 12 minutes to read
• 12 minutes to read
POST /api/v1/Agents/Workflow/SaveEmailFlow
Updates the existing EmailFlow or creates a new EmailFlow if the id parameter is empty
Request Headers
Parameter Name | Description |
---|---|
Authorization | Supports 'Basic', 'SoTicket' and 'Bearer' schemes, depending on installation type. |
X-XSRF-TOKEN | If not using Authorization header, you must provide XSRF value from cookie or hidden input field |
Content-Type | Content-type of the request body: application/json , text/json , application/xml , text/xml , application/x-www-form-urlencoded , application/json-patch+json , application/merge-patch+json |
Accept | Content-type(s) you would like the response in: application/json , text/json , application/xml , text/xml , application/json-patch+json , application/merge-patch+json |
Accept-Language | Convert string references and multi-language values into a specified language (iso2) code. |
SO-Language | Convert string references and multi-language values into a specified language (iso2) code. Overrides Accept-Language value. |
SO-Culture | Number, date formatting in a specified culture (iso2 language) code. Partially overrides SO-Language/Accept-Language value. Ignored if no Language set. |
SO-TimeZone | Specify the timezone code that you would like date/time responses converted to. |
SO-AppToken | The application token that identifies the partner app. Used when calling Online WebAPI from a server. |
Request Body: entity
The EmailFlow to be saved.
Property Name | Type | Description |
---|---|---|
EmailFlowId | Integer | Primary key |
Name | String | Name of the workflow |
Description | String | Description of the workflow |
Status | String | Status of the workflow definition |
JumpToFinish | Boolean | When a goal is reached, contact jumps directly to finished |
StartOnlyOnce | Boolean | A contact can start this flow only once |
OverrideConsentSubscription | Boolean | Override consent and subscription |
FromType | String | Email/Mailing From field address algorithm |
FromName | String | Email From name |
FromAddr | String | Email From address: name@domain.com |
ReplyToType | String | Email/Mailing Reply-To field address algorithm |
ReplyToAddr | String | Reply to address, if different from From-address |
ReplyToName | String | Email Reply-To name |
SmsSender | String | SMS sender (number or name) |
UseGoogleAnalytics | Boolean | Use Google Analytics |
GaSource | String | GA Source |
GaCampaign | String | GA Campaign |
UseTimeframe | Boolean | Use sender timeframe settings, only send email/sms within the timeframe |
SelectedDays | String | Selected days (flags, so several days can be selected) for time frame |
TimeframeStart | String | Start of email/sms sending timeframe in [DT: ] format, interpreted in workflow time zone |
TimeframeEnd | String | End of email/sms sending timeframe in [DT: ] format, interpreted in workflow time zone |
UseWorkflowStart | Boolean | Start the flow running with enrolled participants at the given time |
WorkflowStart | String | When to start running the workflow. Until start, any enrolled members are not running through the flow, just waiting. In [DT: ] format, interpreted in workflow time zone |
UseEnrollmentEnd | Boolean | End enrollment into the workflow at the given time |
EnrollmentEnd | String | Do not enroll more participant after given time. In [DT: ] format, interpreted in workflow time zone |
RemoveFromFlows | Array | Workflows to remove the participants from when they are enrolled in this workflow |
TzLocation | TimeZoneData | The workflow timezone setting |
Folder | HierarchyEntity | The folder/hierarchy the email flow is in. |
Associate | Associate | The owner of the workflow. |
ShipmentType | MDOListItem | The Shipment type (mailing type) |
Steps | Array | The steps in the workflow, mainline steps - forking steps are indicated by its WorkflowStepType. |
Triggers | Array | The triggers for the workflow. |
Goals | Array | The goals for the workflow. |
Filter | WorkflowFilter | The filter for the workflow. |
BlockLists | Array | Persons in the given selections are not allowed to enter this workflow |
ContentInfo | Array | Info about workflow content like messages, links and forms (read-only) |
ExitFlowId | Integer | On exit with no success criteria met, we attempt to add the participant to the given flow |
ExitSuccessFlowId | Integer | On exit with success criteria met, we attempt to add the participant to the given flow |
CreatedBy | Associate | The associate that first created the flow. The property is read-only. |
UpdatedBy | Associate | The person that last updated the flow. |
CreatedDate | String | Registered date in UTC. |
UpdatedDate | String | Updated date in UTC. |
VisibleFor | Array | The set of users or groups the record is visible for |
Response:
OK
Response | Description |
---|---|
200 | OK |
Response body: EmailFlow
Property Name | Type | Description |
---|---|---|
EmailFlowId | int32 | Primary key |
Name | string | Name of the workflow |
Description | string | Description of the workflow |
Status | string | Status of the workflow definition |
JumpToFinish | bool | When a goal is reached, contact jumps directly to finished |
StartOnlyOnce | bool | A contact can start this flow only once |
OverrideConsentSubscription | bool | Override consent and subscription |
FromType | string | Email/Mailing From field address algorithm |
FromName | string | Email From name |
FromAddr | string | Email From address: name@domain.com |
ReplyToType | string | Email/Mailing Reply-To field address algorithm |
ReplyToAddr | string | Reply to address, if different from From-address |
ReplyToName | string | Email Reply-To name |
SmsSender | string | SMS sender (number or name) |
UseGoogleAnalytics | bool | Use Google Analytics |
GaSource | string | GA Source |
GaCampaign | string | GA Campaign |
UseTimeframe | bool | Use sender timeframe settings, only send email/sms within the timeframe |
SelectedDays | string | Selected days (flags, so several days can be selected) for time frame |
TimeframeStart | string | Start of email/sms sending timeframe in [DT: ] format, interpreted in workflow time zone |
TimeframeEnd | string | End of email/sms sending timeframe in [DT: ] format, interpreted in workflow time zone |
UseWorkflowStart | bool | Start the flow running with enrolled participants at the given time |
WorkflowStart | string | When to start running the workflow. Until start, any enrolled members are not running through the flow, just waiting. In [DT: ] format, interpreted in workflow time zone |
UseEnrollmentEnd | bool | End enrollment into the workflow at the given time |
EnrollmentEnd | string | Do not enroll more participant after given time. In [DT: ] format, interpreted in workflow time zone |
RemoveFromFlows | array | Workflows to remove the participants from when they are enrolled in this workflow |
TzLocation | TimeZoneData | The workflow timezone setting |
Folder | HierarchyEntity | The folder/hierarchy the email flow is in. Use MDO List name "hierarchy" to get list items. |
Associate | Associate | The owner of the workflow. Use MDO List name "associate" to get list items. |
ShipmentType | MDOListItem | The Shipment type (mailing type) |
Steps | array | The steps in the workflow, mainline steps - forking steps are indicated by its WorkflowStepType. |
Triggers | array | The triggers for the workflow. |
Goals | array | The goals for the workflow. |
Filter | WorkflowFilter | The filter for the workflow. |
BlockLists | array | Persons in the given selections are not allowed to enter this workflow |
ContentInfo | array | Info about workflow content like messages, links and forms (read-only) |
ExitFlowId | int32 | On exit with no success criteria met, we attempt to add the participant to the given flow |
ExitSuccessFlowId | int32 | On exit with success criteria met, we attempt to add the participant to the given flow |
CreatedBy | Associate | The associate that first created the flow. The property is read-only. |
UpdatedBy | Associate | The person that last updated the flow. |
CreatedDate | date-time | Registered date in UTC. |
UpdatedDate | date-time | Updated date in UTC. |
VisibleFor | array | The set of users or groups the record is visible for |
TableRight | TableRight | The carrier's table right |
FieldProperties | object | Field property dictionary mapping field names to field access rights. |
Sample request
POST /api/v1/Agents/Workflow/SaveEmailFlow
Authorization: Basic dGplMDpUamUw
Accept: application/json; charset=utf-8
Accept-Language: en
Content-Type: application/json; charset=utf-8
{
"EmailFlowId": 526,
"Name": "Hirthe-Morar",
"Description": "Reactive real-time data-warehouse",
"Status": "None",
"JumpToFinish": false,
"StartOnlyOnce": true,
"OverrideConsentSubscription": true,
"FromType": "FromOnlySpecified",
"FromName": "Muller, Ondricka and Ondricka",
"FromAddr": "aliquid",
"ReplyToType": "ReplyToEmpty",
"ReplyToAddr": "sint",
"ReplyToName": "Lang Inc and Sons",
"SmsSender": "natus",
"UseGoogleAnalytics": false,
"GaSource": "voluptatum",
"GaCampaign": "voluptatem",
"UseTimeframe": true,
"SelectedDays": "Friday",
"TimeframeStart": "autem",
"TimeframeEnd": "laborum",
"UseWorkflowStart": false,
"WorkflowStart": "repudiandae",
"UseEnrollmentEnd": false,
"EnrollmentEnd": "voluptatem",
"RemoveFromFlows": [
391,
811
],
"TzLocation": null,
"Folder": null,
"Associate": null,
"ShipmentType": null,
"Steps": [
{
"WorkflowStepId": 130,
"WorkflowId": 145,
"StepType": "AddToList",
"Rank": 547
},
{
"WorkflowStepId": 130,
"WorkflowId": 145,
"StepType": "AddToList",
"Rank": 547
}
],
"Triggers": [
{
"WorkflowTriggerId": 942,
"WorkflowId": 460,
"TriggerType": "AddedMessage",
"RestrictionGroups": [
{},
{}
]
},
{
"WorkflowTriggerId": 942,
"WorkflowId": 460,
"TriggerType": "AddedMessage",
"RestrictionGroups": [
{},
{}
]
}
],
"Goals": [
{
"WorkflowGoalId": 372,
"WorkflowId": 681,
"GoalType": "AddedToProject",
"RestrictionGroups": [
{},
{}
]
},
{
"WorkflowGoalId": 372,
"WorkflowId": 681,
"GoalType": "AddedToProject",
"RestrictionGroups": [
{},
{}
]
}
],
"Filter": null,
"BlockLists": [
496,
767
],
"ContentInfo": [
{
"WorkflowContentType": "Form",
"Id": 828,
"Actions": false
},
{
"WorkflowContentType": "Form",
"Id": 828,
"Actions": false
}
],
"ExitFlowId": 532,
"ExitSuccessFlowId": 773,
"CreatedBy": null,
"UpdatedBy": null,
"CreatedDate": "2017-01-31T17:54:03.9295422+01:00",
"UpdatedDate": "2008-01-01T17:54:03.9295422+01:00",
"VisibleFor": [
{
"VisibleId": 628,
"Visibility": "All",
"DisplayValue": "dignissimos"
},
{
"VisibleId": 628,
"Visibility": "All",
"DisplayValue": "dignissimos"
}
]
}
Sample response
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"EmailFlowId": 116,
"Name": "Stoltenberg-Adams",
"Description": "Intuitive upward-trending function",
"Status": "None",
"JumpToFinish": false,
"StartOnlyOnce": false,
"OverrideConsentSubscription": false,
"FromType": "FromOnlySpecified",
"FromName": "Rodriguez, Kozey and Schulist",
"FromAddr": "voluptatem",
"ReplyToType": "ReplyToEmpty",
"ReplyToAddr": "rerum",
"ReplyToName": "Anderson, Considine and Cole",
"SmsSender": "nulla",
"UseGoogleAnalytics": false,
"GaSource": "ratione",
"GaCampaign": "ut",
"UseTimeframe": false,
"SelectedDays": "Friday",
"TimeframeStart": "ea",
"TimeframeEnd": "consectetur",
"UseWorkflowStart": false,
"WorkflowStart": "sint",
"UseEnrollmentEnd": false,
"EnrollmentEnd": "facilis",
"RemoveFromFlows": [
506,
190
],
"TzLocation": null,
"Folder": null,
"Associate": null,
"ShipmentType": null,
"Steps": [
{
"WorkflowStepId": 346,
"WorkflowId": 339,
"StepType": "AddToList",
"Rank": 405
},
{
"WorkflowStepId": 346,
"WorkflowId": 339,
"StepType": "AddToList",
"Rank": 405
}
],
"Triggers": [
{
"WorkflowTriggerId": 691,
"WorkflowId": 994,
"TriggerType": "AddedMessage",
"RestrictionGroups": [
{},
{}
],
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.String",
"FieldLength": 76
}
}
},
{
"WorkflowTriggerId": 691,
"WorkflowId": 994,
"TriggerType": "AddedMessage",
"RestrictionGroups": [
{},
{}
],
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.String",
"FieldLength": 76
}
}
}
],
"Goals": [
{
"WorkflowGoalId": 446,
"WorkflowId": 8,
"GoalType": "AddedToProject",
"RestrictionGroups": [
{},
{}
],
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.String",
"FieldLength": 358
}
}
},
{
"WorkflowGoalId": 446,
"WorkflowId": 8,
"GoalType": "AddedToProject",
"RestrictionGroups": [
{},
{}
],
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.String",
"FieldLength": 358
}
}
}
],
"Filter": null,
"BlockLists": [
973,
139
],
"ContentInfo": [
{
"WorkflowContentType": "Form",
"Id": 152,
"Actions": false,
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 808
}
}
},
{
"WorkflowContentType": "Form",
"Id": 152,
"Actions": false,
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 808
}
}
}
],
"ExitFlowId": 22,
"ExitSuccessFlowId": 595,
"CreatedBy": null,
"UpdatedBy": null,
"CreatedDate": "2019-08-01T17:54:03.9295422+02:00",
"UpdatedDate": "2006-07-28T17:54:03.9295422+02:00",
"VisibleFor": [
{
"VisibleId": 724,
"Visibility": "All",
"DisplayValue": "sunt",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.String",
"FieldLength": 694
}
}
},
{
"VisibleId": 724,
"Visibility": "All",
"DisplayValue": "sunt",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.String",
"FieldLength": 694
}
}
}
],
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 909
}
}
}