> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# api_operation

> api_operation event.

This event is triggered to summarize the actions taken during an invocation of the segmentation CRUD API.

## Properties

| Name                  | Type                                                                                                | Description                                              |
| :-------------------- | :-------------------------------------------------------------------------------------------------- | :------------------------------------------------------- |
| Created               | DateTime                                                                                            | The date and time when the operation was submitted.      |
| Completed             | DateTime                                                                                            | The date and time when the operation was completed.      |
| Operation             | [SegmentOperation](/services/playfab/api-references/events/data-types/segmentoperation)             | The segment operation that was performed.                |
| OperationStatus       | [SegmentOperationStatus](/services/playfab/api-references/events/data-types/segmentoperationstatus) | The status of the operation.                             |
| SegmentId             | String                                                                                              | The ID of the segment.                                   |
| SegmentName           | String                                                                                              | The name of the segment.                                 |
| SegmentDefinition     | String                                                                                              | The segment definition.                                  |
| EnteredSegmentActions | String                                                                                              | The actions triggered when a profile enters the segment. |
| LeftSegmentActions    | String                                                                                              | The actions triggered when a profile exits the segment.  |

## Common Properties

All V2 PlayStream events are formatted as JSON objects and most share the following common properties:

| Name               | Type                                                                          | Description                                                                               |
| :----------------- | :---------------------------------------------------------------------------- | :---------------------------------------------------------------------------------------- |
| SchemaVersion      | String                                                                        | PlayStream event format version, following a semantic versioning scheme.                  |
| FullName           | [Object](/services/playfab/api-references/events/data-types/fullnameobject)   | Combination of the event name and event namespace to fully specify the event type.        |
| Id                 | String                                                                        | PlayFab-assigned unique identifier for this event.                                        |
| Timestamp          | DateTime                                                                      | The time (in UTC) associated with this event.                                             |
| Entity             | [Object](/services/playfab/api-references/events/data-types/entityobject)     | Details about the entity to which this event applies including Entity Id and Entity type. |
| Originator         | [Object](/services/playfab/api-references/events/data-types/originatorobject) | Object describing the source and source type that initiated this event.                   |
| PayloadContentType | String                                                                        | Specifies the content of the event payload. Default is "JSON".                            |
| Origin Info        | Object                                                                        | Optional field containing info about events originating outside of PlayFab.               |


## Related topics

- [PlayStream event model reference for PlayFab](/services/playfab/api-references/events/index.md)
- [PFInventoryExecuteInventoryOperationsAsync](/services/playfab/api-references/c/pfinventory/functions/pfinventoryexecuteinventoryoperationsasync.md)
- [PFInventoryExecuteInventoryOperationsGetResult](/services/playfab/api-references/c/pfinventory/functions/pfinventoryexecuteinventoryoperationsgetresult.md)
- [Switching sandboxes properly for store operations](/publishing/xstore-commerce/xstore-switching-sandbox.md)
- [OperationTypes](/services/playfab/api-references/events/data-types/operationtypes.md)
