Request
authorization
Authorization: Bearer <token>
application/json
{
"name": "string",
"segmentId": 0,
"users": {
"emails": [
"[email protected]"
],
"groups": [
[
"string"
]
]
},
"roles": [
"string"
],
"actions": [
"string"
]
}
Responses
application/json
{
"status": true,
"data": {
"id": "string",
"name": "string",
"description": "string",
"segmentId": 0,
"users": {
"emails": [
"[email protected]"
],
"groups": [
[
"string"
]
]
},
"roles": [
"string"
],
"counts": {
"members": 0,
"unmatchedEmails": 0
},
"actions": [
"string"
],
"createdAt": "string",
"updatedAt": "string"
}
}
application/json
{
"status": false,
"error": {
"code": 5209,
"message": "Invalid input"
}
}
application/json
{
"status": false,
"error": {
"code": 4002,
"message": "No auth token"
}
}
application/json
{
"status": false,
"error": {
"code": 3001,
"message": "Entity not found"
}
}