diff --git a/backend/src/Logitar.Cms.Web/Controllers/FieldTypeController.cs b/backend/src/Logitar.Cms.Web/Controllers/FieldTypeController.cs index 074ce37..273e412 100644 --- a/backend/src/Logitar.Cms.Web/Controllers/FieldTypeController.cs +++ b/backend/src/Logitar.Cms.Web/Controllers/FieldTypeController.cs @@ -44,6 +44,13 @@ public async Task> ReadAsync(string uniqueName, Cancella return fieldType == null ? NotFound() : Ok(fieldType); } + [HttpPut("{id}")] + public async Task> ReplaceAsync(Guid id, [FromBody] ReplaceFieldTypePayload payload, CancellationToken cancellationToken) + { + FieldType? fieldType = await _pipeline.ExecuteAsync(new ReplaceFieldTypeCommand(id, payload), cancellationToken); + return fieldType == null ? NotFound() : Ok(fieldType); + } + [HttpGet] public async Task>> SearchAsync([FromQuery] SearchFieldTypesParameters parameters, CancellationToken cancellationToken) {