# Segment Operations
source: https://developer.mastercard.com/benefit-allocation-service-mtls/documentation/use-cases/segment-operations/index.md

### Available Operations {#available-operations}

|                                                                        Operation                                                                        |                          Description                          |
|---------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------|
| [Assign Segment](https://developer.mastercard.com/benefit-allocation-service-mtls/documentation/use-cases/segment-operations/assign_segment/index.md)   | Add a benefit group to a cardholder.                          |
| [Replace Segment](https://developer.mastercard.com/benefit-allocation-service-mtls/documentation/use-cases/segment-operations/replace_segment/index.md) | Swap a cardholder's current benefit group for a new one.      |
| [Cancel Segment](https://developer.mastercard.com/benefit-allocation-service-mtls/documentation/use-cases/segment-operations/cancel_segment/index.md)   | Remove a cardholder's benefit group and its related benefits. |

### Scenario Matrix {#scenario-matrix}

#### Assign {#assign}

|                                                                       Use Case                                                                        |            Scenario             |                    Description                     |
|-------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------|----------------------------------------------------|
| [Assign Segment](https://developer.mastercard.com/benefit-allocation-service-mtls/documentation/use-cases/segment-operations/assign_segment/index.md) | Assign segment                  | Assign a segment to a card.                        |
| [Assign Segment](https://developer.mastercard.com/benefit-allocation-service-mtls/documentation/use-cases/segment-operations/assign_segment/index.md) | Assign segment effective future | Assign a segment with benefits that start later.   |
| [Assign Segment](https://developer.mastercard.com/benefit-allocation-service-mtls/documentation/use-cases/segment-operations/assign_segment/index.md) | Assign segment expired past     | Assign a segment with benefits that already ended. |
| [Assign Segment](https://developer.mastercard.com/benefit-allocation-service-mtls/documentation/use-cases/segment-operations/assign_segment/index.md) | Assign segment expired future   | Assign a segment with benefits that end later.     |

#### Replace {#replace}

|                                                                        Use Case                                                                         |             Scenario             |                  Description                  |
|---------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------|-----------------------------------------------|
| [Replace Segment](https://developer.mastercard.com/benefit-allocation-service-mtls/documentation/use-cases/segment-operations/replace_segment/index.md) | Replace segment                  | Replace a segment associated with a card.     |
| [Replace Segment](https://developer.mastercard.com/benefit-allocation-service-mtls/documentation/use-cases/segment-operations/replace_segment/index.md) | Replace segment effective future | Replace a segment with one that starts later. |
| [Replace Segment](https://developer.mastercard.com/benefit-allocation-service-mtls/documentation/use-cases/segment-operations/replace_segment/index.md) | Replace segment expired past     | Replace a segment that already ended.         |
| [Replace Segment](https://developer.mastercard.com/benefit-allocation-service-mtls/documentation/use-cases/segment-operations/replace_segment/index.md) | Replace segment expired future   | Replace a segment that ends later.            |

#### Cancel {#cancel}

|                                                                       Use Case                                                                        |            Scenario             |               Description                |
|-------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------|------------------------------------------|
| [Cancel Segment](https://developer.mastercard.com/benefit-allocation-service-mtls/documentation/use-cases/segment-operations/cancel_segment/index.md) | Cancel segment                  | Cancel a segment associated with a card. |
| [Cancel Segment](https://developer.mastercard.com/benefit-allocation-service-mtls/documentation/use-cases/segment-operations/cancel_segment/index.md) | Cancel segment effective future | Cancel a segment that starts later.      |
| [Cancel Segment](https://developer.mastercard.com/benefit-allocation-service-mtls/documentation/use-cases/segment-operations/cancel_segment/index.md) | Cancel segment expired past     | Cancel a segment that already ended.     |
| [Cancel Segment](https://developer.mastercard.com/benefit-allocation-service-mtls/documentation/use-cases/segment-operations/cancel_segment/index.md) | Cancel segment expired future   | Cancel a segment that ends later.        |

