Is treated as an operation?

Hello everyone,

Suppose that I have the following service:

[PUT] /Patient/{patientId}/contact
[PUT] /Patient/{patientId}/name

Do I handle this as an operation? If not, what is the proper manner?


You could define a custom operation for POST /Patient/{patientId}/$contact, but be aware that you’d need to make custom arrangements for anyone to support it. Most typical is to do a snapshot update of the whole resource. Less commonly supported (but far more supported than a custom operation would be) is the PATCH operation.