| Requires any of the roles: | Client, Admin, Partner |
| POST | /segments_criteria |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | body | long | Yes | |
| SegmentsId | body | long | Yes | |
| Logical | body | string | No | |
| OpenBrackets | body | string | No | |
| FieldName | body | string | Yes | |
| Operator | body | string | Yes | |
| FieldValue | body | string | No | |
| CloseBrackets | body | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | long | No | |
| SegmentsId | form | long | No | |
| Logical | form | string | No | |
| OpenBrackets | form | string | No | |
| FieldName | form | string | No | |
| Operator | form | string | No | |
| FieldValue | form | string | No | |
| CloseBrackets | form | string | No | |
| ResponseStatus | form | ResponseStatus | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /segments_criteria HTTP/1.1
Host: duengageapi.uat.scadsoftware.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Id: 0,
SegmentsId: 0,
Logical: String,
OpenBrackets: String,
FieldName: String,
Operator: String,
FieldValue: String,
CloseBrackets: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Id: 0,
SegmentsId: 0,
Logical: String,
OpenBrackets: String,
FieldName: String,
Operator: String,
FieldValue: String,
CloseBrackets: String,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}