# `Twilio.Trusthub.V1.TrustProduct.TrustProductsEntityAssignmentsService`
[🔗](https://github.com/jeffhuen/twilio_elixir/blob/main/lib/twilio/trusthub/v1/trust_product/trust_products_entity_assignments_service.ex#L2)

Service for TrustProductsEntityAssignments API operations.

Operations: `list`, `create`, `fetch`, `delete`

# `create`

```elixir
@spec create(Twilio.Client.t(), String.t(), map(), keyword()) ::
  {:ok,
   Twilio.Resources.Trusthub.V1.TrustProduct.TrustProductsEntityAssignments.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}
```

Create a new Assigned Item.

Operation: `CreateTrustProductEntityAssignment` | Tags: TrusthubV1TrustProductsEntityAssignments

## Required Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `ObjectSid` | string | The SID of an object bag that holds information of the different items. |

# `delete`

```elixir
@spec delete(Twilio.Client.t(), String.t(), String.t(), keyword()) ::
  {:ok, map()} | {:ok, map(), map()} | :ok | {:error, Twilio.Error.t()}
```

Remove an Assignment Item Instance.

Operation: `DeleteTrustProductEntityAssignment` | Tags: TrusthubV1TrustProductsEntityAssignments

# `fetch`

```elixir
@spec fetch(Twilio.Client.t(), String.t(), String.t(), keyword()) ::
  {:ok,
   Twilio.Resources.Trusthub.V1.TrustProduct.TrustProductsEntityAssignments.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}
```

Fetch specific Assigned Item Instance.

Operation: `FetchTrustProductEntityAssignment` | Tags: TrusthubV1TrustProductsEntityAssignments

# `list`

```elixir
@spec list(Twilio.Client.t(), String.t(), map(), keyword()) ::
  {:ok, Twilio.Page.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}
```

Retrieve a list of all Assigned Items for an account.

Operation: `ListTrustProductEntityAssignment` | Tags: TrusthubV1TrustProductsEntityAssignments

## Query Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `ObjectType` | string | A string to filter the results by (EndUserType or SupportingDocumentType) machine-name. This is useful when you want to retrieve the entity-assignment of a specific end-user or supporting document. |

# `stream`

```elixir
@spec stream(Twilio.Client.t(), String.t(), map(), keyword()) :: Enumerable.t()
```

Stream: Retrieve a list of all Assigned Items for an account. (lazy auto-pagination).

---

*Consult [api-reference.md](api-reference.md) for complete listing*
