Class JsonPatchViewModel
Represents a view model used to encapsulate JSON Patch operations for API requests. Typically contains a collection of patch operations to be applied to a resource.
Inheritance
object
Namespace: Umbraco.Cms.Api.Management.ViewModels.JsonPatch
Assembly: Umbraco.Cms.Api.Management.dll
Syntax
public class JsonPatchViewModel
Constructors
View SourceJsonPatchViewModel()
Declaration
public JsonPatchViewModel()
Properties
View SourceOp
Gets or sets the type of operation to be performed in the JSON Patch document (e.g., 'add', 'remove', 'replace').
Declaration
[Required]
public string Op { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Path
Gets or sets the JSON Patch path indicating the location to apply the operation.
Declaration
[Required]
public string Path { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Value
Gets or sets the value to be applied in the JSON Patch operation.
Declaration
[Required]
public object Value { get; set; }
Property Value
| Type | Description |
|---|---|
| object |