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

# IPatchworkMultiAssignable

> IPatchwork721 extension for contracts supporting Patchwork assignment

<Info>
  <div class="border-b border-zinc-500/20 dark:border-zinc-500/30 pb-4 flex" style={{gap: '4px', fontFamily: 'var(--font-jetbrains-mono)'}}>
    <span class="token keyword">import</span> <span class="token string">"@patchwork/contracts/PatchworkAssignable/IPatchworkAssignable.sol"</span><span class="token punctuation">;</span>
  </div>

  **Inherits:**
  [`IPatchworkAssignable`](/src/interfaces/IPatchworkAssignable.sol/interface.IPatchworkAssignable.md)
</Info>

<div
  className="border-primary dark:border-primary-light"
  style={{
borderTopWidth: '1.5px',
marginBottom: '-1rem',
marginTop: '4rem'
}}
/>

## Functions

***

### isAssignedTo

Checks if this fragment is assigned to a target

```solidity theme={null}
function isAssignedTo(uint256 ourTokenId, address target, uint256 targetTokenId) external view returns (bool);
```

**Parameters**

| Name | Type | Description |
| - | - | - |
| `ourTokenId` | `uint256` | the tokenId of the fragment |
| `target` | `address` | the address of the target |
| `targetTokenId` | `uint256` | the tokenId of the target |

### unassign

Unassigns a token

```solidity theme={null}
function unassign(uint256 ourTokenId, address target, uint256 targetTokenId) external;
```

**Parameters**

| Name | Type | Description |
| - | - | - |
| `ourTokenId` | `uint256` | tokenId of our fragment |
| `target` | `address` | |
| `targetTokenId` | `uint256` | |

### getAssignmentCount

Counts the number of unique assignments this token has

```solidity theme={null}
function getAssignmentCount(uint256 tokenId) external view returns (uint256);
```

**Parameters**

| Name | Type | Description |
| - | - | - |
| `tokenId` | `uint256` | tokenId of our fragment |

### getAssignments

Gets assignments for a fragment

```solidity theme={null}
function getAssignments(uint256 tokenId, uint256 offset, uint256 count) external view returns (Assignment[] memory);
```

**Parameters**

| Name | Type | Description |
| - | - | - |
| `tokenId` | `uint256` | tokenId of our fragment |
| `offset` | `uint256` | the page offset |
| `count` | `uint256` | the maximum numer of entries to return |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.