Question: If the input profile is active, set it to inactive and assign the provided reason to the profile. The updated profile should be returned. If

If the input profile is active, set it to inactive and assign the provided reason to the profile. The updated profile should be returned.
If the input profile is inactive, set it to active and remove the reason property from the profile. The updated profile should be returned.
If a profile passed in is active and no reason is provided, return "confirm status manually" and do not modify the profile.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!