Enum WriteOperationKind
- Namespace
- JsonApiDotNetCore.Middleware
- Assembly
- JsonApiDotNetCore.dll
Lists the functional write operations, originating from a POST/PATCH/DELETE request against a single resource/relationship or a POST request against a list of operations.
public enum WriteOperationKind
Fields
AddToRelationship = 4
Add resources to a to-many relationship.
CreateResource = 0
Create a new resource with attributes, relationships or both.
DeleteResource = 2
Delete an existing resource.
RemoveFromRelationship = 5
Remove resources from a to-many relationship.
SetRelationship = 3
Perform a complete replacement of a relationship on an existing resource.
UpdateResource = 1
Update the attributes and/or relationships of an existing resource. Only the values of sent attributes are replaced. And only the values of sent relationships are replaced.