> ## 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.

# XblMultiplayerSessionSetMatchmakingTargetSessionConstantsJson

> XblMultiplayerSessionSetMatchmakingTargetSessionConstantsJson

Sets the properties of the matchmaking. This should only be set by a client acting as a matchmaking service.

## Syntax

```cpp theme={null}
HRESULT XblMultiplayerSessionSetMatchmakingTargetSessionConstantsJson(  
         XblMultiplayerSessionHandle handle,  
         const char* matchmakingTargetSessionConstantsJson  
)  
```

### Parameters

*handle*   \_In\_\
Type: [XblMultiplayerSessionHandle](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_c/handles/xblmultiplayersessionhandle.md)

Handle to the multiplayer session.

*matchmakingTargetSessionConstantsJson*   \_In\_\
Type: char\*

A JSON string representing the target session constants.

### Return value

Type: HRESULT

HRESULT return code for this API operation.

## Requirements

**Header:** multiplayer\_c.h

**Library:** Microsoft.Xbox.Services.142.C.lib or Microsoft.Xbox.Services.143.C.lib

## See also

[multiplayer\_c](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_c/multiplayer_c_members.md)


## Related topics

- [multiplayer_c (contents)](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_c/multiplayer_c_members.md)
- [XblMultiplayerSessionConstantsSetMeasurementServerAddressesJson](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessionconstantssetmeasurementserveraddressesjson.md)
- [XblMultiplayerSessionConstantsSetCloudComputePackageJson](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessionconstantssetcloudcomputepackagejson.md)
- [XblMultiplayerSessionConstantsSetCapabilities](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessionconstantssetcapabilities.md)
- [XblMultiplayerSessionConstantsSetMaxMembersInSession](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessionconstantssetmaxmembersinsession.md)
