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

# PFCatalogSetItemModerationStateAsync

> Sets the moderation state for an item, including the concern category and string reason. More information about moderation states can be found here: https://learn.microsoft.com/gaming/playfab/features/economy-v2/ugc/moderation

Sets the moderation state for an item, including the concern category and string reason. More information about moderation states can be found here: [https://learn.microsoft.com/gaming/playfab/features/economy-v2/ugc/moderation](https://learn.microsoft.com/gaming/playfab/features/economy-v2/ugc/moderation)

## Syntax

```cpp theme={null}
HRESULT PFCatalogSetItemModerationStateAsync(  
    PFEntityHandle entityHandle,  
    const PFCatalogSetItemModerationStateRequest* request,  
    XAsyncBlock* async  
)  
```

### Parameters

**`entityHandle`**   PFEntityHandle

PFEntityHandle to use for authentication.

**`request`**   [PFCatalogSetItemModerationStateRequest\*](https://docs.xbox.com/services/playfab/api-references/c/pfcatalogtypes/structs/pfcatalogsetitemmoderationstaterequest.md)

Populated request object.

**`async`**   XAsyncBlock\*\
*Inout*

XAsyncBlock for the async operation.

### Return value

Type: HRESULT

Result code for this API operation.

## Remarks

This API is available on Windows. Call XAsyncGetStatus to get the status of the operation. If the service call is unsuccessful, the async result will be E\_PF\_DATABASE\_THROUGHPUT\_EXCEEDED, E\_PF\_ITEM\_NOT\_FOUND or any of the global PlayFab Service errors. See doc page "Handling PlayFab Errors" for more details on error handling.

## Requirements

**Header:** PFCatalog.h

## See also

[PFCatalog members](https://docs.xbox.com/services/playfab/api-references/c/pfcatalog/pfcatalog_members.md)


## Related topics

- [Services C API overview - PFCatalog.h](https://docs.xbox.com/services/playfab/api-references/c/pfcatalog/pfcatalog_members.md)
- [Set Item Moderation State](https://docs.xbox.com/services/playfab/api-references/rest/economy/catalog/set-item-moderation-state.md)
- [PFCatalogSetItemModerationStateRequest](https://docs.xbox.com/services/playfab/api-references/c/pfcatalogtypes/structs/pfcatalogsetitemmoderationstaterequest.md)
- [PFCatalogGetItemModerationStateAsync](https://docs.xbox.com/services/playfab/api-references/c/pfcatalog/functions/pfcataloggetitemmoderationstateasync.md)
- [PFCatalogGetItemModerationStateGetResult](https://docs.xbox.com/services/playfab/api-references/c/pfcatalog/functions/pfcataloggetitemmoderationstategetresult.md)
