PatchOperationMedia

PatchOperationMedia
PatchOperationMedia

Class representing a SCIM 2.0 patch operation.

Examples: { "op": "add", "value": { "name": { "givenName": "John", "familyName": "Doe" } } }

{ "op": "add", "path": "name", "value": { "givenName": "John", "familyName": "Smith" } }

{ "op": "add", "path": "name.givenName", "value": "John" }

{ "op": "remove", "path": "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:country" }

JSON Example
{
    "value": "India",
    "path": "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:country",
    "op": "add"
}
string
value
Optional

The value that should be updated in Json format. Value can be a single string or a JSON structure for complex values. Value is required when op is 'add' or 'replace' (and it is not needed when op is 'remove').

string
path
Optional

Specify the attribute/sub-attribute that should be updated. Path is required when op is 'removed' and is optional when op is 'add' or 'replace'.

string
op
Required

The method that should be used in the operation.

Possible values are : add, replace, remove,