I am developing an API for a company. They have multiple projects lined up to interact with the API.
The API will be sent an id of an object to disable. If this is successful the user who's item was disabled should receive an email.
My question is this: should the API be responsible for sending the email or should the API return that the object was disabled and the email address to send the email to?
Many thanks, looking forward to your opinions.