---
title: "Assets client"
slug: "assets-client"
abstract: "Use the Assets client to change an asset’s life cycle status—approve, reject, archive, restore, or submit—with validation on allowed transitions."
---
# Assets client

The Assets client can be used to manage the final life cycle status of an asset using the `FinalLifeCycleManager`, with the following methods:

- `ApproveAsync` - moves the asset to the *approved* state.
- `ArchiveAsync` - moves the asset to the *archived* state.
- `DirectPublishAsync` - moves the asset to the *approved* state.
- `RejectAsync` - moves the asset to the *rejected* state (with an optional reason for rejection).
- `RestoreAsync` - moves the asset to the *approved* state.
- `RestoreFromDeleteAsync`: restores a soft-deleted asset to the state it was in before deletion.
- `SoftDeleteAsync`: moves the asset to the *deleted* state. A soft-deleted asset can be restored to its previous state using `RestoreFromDeleteAsync`.
- `SubmitAsync` - moves the asset to the *underreview* state.

These methods require the ID of an existing asset. If the provided ID is not that of an asset entity, or if the transition from the current state to the requested state is not allowed, the client throws a `ForbiddenException`.

For example, to approve the asset with the ID 1000:

```csharp
await MClient.Assets.FinalLifeCycleManager.ApproveAsync(1000);

```

Additionally, you can get the entity ID of a final life cycle status entity (this works with an `enum` constant or with the status string value):

```csharp
long? id = await MClient.Assets.FinalLifeCycleManager.GetFinalLifeCycleStatusIdAsync(FinalLifeCycleStatus.StatusValues.Approved);

```