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 |
---|---|---|
IPackaging |
packagingService | |
IUmbraco |
umbracoMapper | |
IBack |
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 |
---|---|---|
Cancellation |
cancellationToken | |
Guid | id | The id of the package. |
Update |
updatePackageRequestModel | The model containing the data for updating a package. |
Returns
Type | Description |
---|---|
Task<IAction |
The created package. |