| Variable | Type | Description |
|---|---|---|
| segment_id | int|string | The ID of the segment for which to update the name |
| segment_name | string | The new name of the segment |
| Parameter | Description |
|---|---|
| boolean | True if the update has succeeded, False otherwise |
true | Code | Message | Description |
|---|---|---|
| 407 | Missing required param segment_id | segment_id param is required |
| 407 | Missing required param segment_name | segment_name param is required |
| 141 | No such segment with ID: %s. | Invalid access to segment_id |
| 141 | Segment %s has been deleted. | Segment has been deleted |
| 144 | Cannot change name of this segment | Cannot change name of this segment |
| 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 segment_id", "code": 407 }
{ "err": true, "message": "Missing required param segment_name", "code": 407 }
{ "err": true, "message": "No such segment with ID: 9997.", "code": 141 }
{ "err": true, "message": "Segment 15 has been deleted.", "code": 141 }
{ "err": true, "message": "There is already another segment with this name", "code": 143 }