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.

  • 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:

RequestResponse
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):

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

Do you have some feedback for us?

If you have suggestions for improving this article,