Class UpdateCreatedPackageController
Inheritance
System.Object
Namespace: Umbraco.Cms.Api.Management.Controllers.Package.Created
Assembly: Umbraco.Cms.Api.Management.dll
Syntax
public class UpdateCreatedPackageController : CreatedPackageControllerBase
Constructors
View SourceUpdateCreatedPackageController(IPackagingService, IUmbracoMapper, IBackOfficeSecurityAccessor)
Declaration
public UpdateCreatedPackageController(IPackagingService packagingService, IUmbracoMapper umbracoMapper, IBackOfficeSecurityAccessor backOfficeSecurityAccessor)
Parameters
| Type | Name | Description |
|---|---|---|
| IPackagingService | packagingService | |
| IUmbracoMapper | umbracoMapper | |
| IBackOfficeSecurityAccessor | backOfficeSecurityAccessor |
Methods
View SourceUpdate(CancellationToken, Guid, UpdatePackageRequestModel)
Updates a package.
Declaration
public async Task<IActionResult> Update(CancellationToken cancellationToken, Guid id, UpdatePackageRequestModel updatePackageRequestModel)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken | |
| Guid | id | The id of the package. |
| UpdatePackageRequestModel | updatePackageRequestModel | The model containing the data for updating a package. |
Returns
| Type | Description |
|---|---|
| Task<IActionResult> | The created package. |