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

# assignTogether

```ts theme={null}
function assignTogether(memberIds, opts?): AssignTogetherRuleEntry;
```

Keeps named members on the same shifts on days when they are both assigned.

## Parameters

<ResponseField name="memberIds" required>
  \[`string`, `string`, `...string[]`]
</ResponseField>

<ResponseField name="opts">
  [`AssignTogetherOptions`](./AssignTogetherOptions)
</ResponseField>

## Returns

```ts theme={null}
AssignTogetherRuleEntry
```
