Alternative approach
To update a segment, follow these steps:- Use the Get segment method to retrieve the current segment details
- Use the Delete segment method to remove the existing segment
- Use the Create segment method to create a new segment with updated information
Example
Note that this approach will change the segment ID. Make sure to update any references to the old segment ID in your application.