> For the complete documentation index, see [llms.txt](https://developer.firmhouse.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.firmhouse.com/graphql-api/api-reference/mutations/assign-asset.md).

# assignAsset

Assign asset to a subscription.

### Arguments

| Argument                                                                                                             | Description                |
| -------------------------------------------------------------------------------------------------------------------- | -------------------------- |
| input ([AssignAssetInput](https://developer.firmhouse.com/graphql-api/api-reference/objects/assign-asset-input.md)!) | Parameters for AssignAsset |

### AssignAssetInput Arguments

| Argument                                                                                         | Description                                                                                    |
| ------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------- |
| id ([ID](https://developer.firmhouse.com/graphql-api/api-reference/objects/id.md)!)              | The ID of the asset to assign                                                                  |
| subscriptionId ([ID](https://developer.firmhouse.com/graphql-api/api-reference/objects/id.md)!)  | The subscription ID to assign the asset to                                                     |
| orderedProductId ([ID](https://developer.firmhouse.com/graphql-api/api-reference/objects/id.md)) | An optional ordered product ID to assign the asset to (has to belong to the same subscription) |

### Return fields

#### asset ([Asset](https://developer.firmhouse.com/graphql-api/api-reference/objects/asset.md))

#### errors (\[[ModelValidationError](https://developer.firmhouse.com/graphql-api/api-reference/objects/model-validation-error.md)!]!)
