How to create custom rest api validation

How to create custom validation for REST API in update(put) method?

Could you please provide few examples of validations you want to implement?

hi Max,
already i cleared that issue in my project thanks for your support : )