I have a user store where user have multi valued attributes like email. So the user will have attribute called emails which may have 0 to many emails on it.
"emails" : ["[email protected]", "[email protected]",........]
Let's say I need to delete "[email protected]" email address from the users email list. Can I do it using user PATCH? If so what should I send with request?
You can do it using PATCH. Except when removing a value from a multi-valued attribute, you have to include an "operation" sub-attribute, which in this case should have a value of "delete". It's discussed in section 3.3.2 in the spec: http://www.simplecloud.info/specs/draft-scim-api-01.html
Here is an example, from that link: