| Variable | Type | Description |
|---|---|---|
| list_id | int|string | The ID of the list in which to create the segment |
| segment_name | string | The name of the segment |
| Parameter | Description |
|---|---|
| int | The segment id |
15002 | Code | Message | Description |
|---|---|---|
| 407 | Missing required param list_id | list_id param is required |
| 407 | Missing required param segment_name | segment_name param is required |
| 101 | Not allowed for list_id = %s | Invalid access to list_id |
| 142 | Segment name cannot be empty | Segment name cannot be empty |
| 143 | There is already another segment with this name | There is already another segment with this name |
{ "err": true, "message": "Missing required param list_id", "code": 407 }
{ "err": true, "message": "Missing required param segment_name", "code": 407 }
{ "err": true, "message": "Segment name cannot be empty", "code": 142 }
{ "err": true, "message": "There is already another segment with this name", "code": 143 }