> For the complete documentation index, see [llms.txt](https://dynamicpixels.gitbook.io/dynamicpixels-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dynamicpixels.gitbook.io/dynamicpixels-docs/unity-sdk/party.md).

# Party

Explore the list of API functions available in Unity for party service, including detailed descriptions and usage examples.

{% hint style="warning" %}
To use service functions, first ensure that the service is activated before. You can see services by opening "Service Hub" From the game's dashboard header.&#x20;
{% endhint %}

### Find Parties[​](https://docs.dynamicpixels.dev/parties/plugin#find-parties) <a href="#find-parties" id="find-parties"></a>

Retrieves a list of parties based on the specified parameters.

```csharp
var parties = await ServiceHub.Services.Party.GetParties(new GetPartiesParams
{
    Query = "",
    Skip = 0,
    Limit = 0
});
```

### Create New Party[​](https://docs.dynamicpixels.dev/parties/plugin#create-new-party) <a href="#create-new-party" id="create-new-party"></a>

Creates a new party based on the specified parameters.

```csharp
var party = await ServiceHub.Services.Party.CreateParty(new CreatePartyParams
{
    Data = new PartyInput
        {
            Name = "",
            Desc = "",
            MaxMemberCount = 0,
            IsPrivate = false,
            Teams = new string[] { },
            Channels = new string[] { },
            Variables = new Dictionary<string, string>()
        }
});
```

### Get Subscribed parties[​](https://docs.dynamicpixels.dev/parties/plugin#get-subscribed-parties) <a href="#get-subscribed-parties" id="get-subscribed-parties"></a>

Retrieves a list of parties the user has subscribed to.

```csharp
var parties = await ServiceHub.Services.Party.GetSubscribedParties(new GetSubscribedPartiesParams
{
    Query = "",
    Skip = 0,
    Limit = 0
});
```

### Join To Party[​](https://docs.dynamicpixels.dev/parties/plugin#join-to-party) <a href="#join-to-party" id="join-to-party"></a>

Joins the user to a specified party.

```csharp
var partyMemberInfo = await ServiceHub.Services.Party.JoinToParty(new JoinToPartyParams
{
    PartyId = 0,
    Team = "",
    Channels = new string[] { }
});
```

### Leave Party[​](https://docs.dynamicpixels.dev/parties/plugin#leave-party) <a href="#leave-party" id="leave-party"></a>

Removes a user from a specified party.

```csharp
await ServiceHub.Services.Party.LeaveParty(new LeavePartyParams
{
    PartyId = 0
});
```

### Get Party By ID[​](https://docs.dynamicpixels.dev/parties/plugin#get-party-by-id) <a href="#get-party-by-id" id="get-party-by-id"></a>

Retrieves a party by its unique identifier.

```csharp
    var party = await ServiceHub.Services.Party.GetPartyById(new GetPartyByIdParams
    {
        PartyId = 0
    });
```

### Edit Party[​](https://docs.dynamicpixels.dev/parties/plugin#edit-party) <a href="#edit-party" id="edit-party"></a>

Edits the details of a specified party.

```csharp
var party = await ServiceHub.Services.Party.EditParty(new EditPartyParams
{
    PartyId = 0,
    Party = new PartyInput
{
    Name = "",
    Desc = "",
    MaxMemberCount = 0,
    IsPrivate = false,
    Teams = new string[] { },
    Channels = new string[] { },
    Variables = new Dictionary<string, string>()
}
});
```

### Get Party Members[​](https://docs.dynamicpixels.dev/parties/plugin#get-party-members) <a href="#get-party-members" id="get-party-members"></a>

Retrieves a list of members in a specified party.

```csharp
var members = await ServiceHub.Services.Party.GetPartyMembers(new GetPartyMembersParams
{
    PartyId = 0,
    Skip = 0,
    Limit = 0
});
```

### Get Party Membership Requests[​](https://docs.dynamicpixels.dev/parties/plugin#get-party-membership-requests) <a href="#get-party-membership-requests" id="get-party-membership-requests"></a>

Retrieves a list of members waiting for approval to join a specified party.

```csharp
var waitingMembers = await ServiceHub.Services.Party.GetPartyWaitingMembers(
new GetPartyWaitingMembersParams
{
    PartyId = 0,
    Skip = 0,
    Limit = 0
});
```

### Accept Join Request[​](https://docs.dynamicpixels.dev/parties/plugin#accept-join-request) <a href="#accept-join-request" id="accept-join-request"></a>

Accepts a member's request to join a specified party.

```csharp
var member = await ServiceHub.Services.Party.AcceptJoining(new AcceptJoiningParams
{
    PartyId = 0,
    MembershipId = 0
});
```

### Reject Join Request[​](https://docs.dynamicpixels.dev/parties/plugin#reject-join-request) <a href="#reject-join-request" id="reject-join-request"></a>

Rejects a member's request to join a specified party.

```csharp
var member = await ServiceHub.Services.Party.RejectJoining(new RejectJoiningParams
{
    PartyId = 0,
    MembershipId = 0
});
```
