Specification
Input parameters
- id
Authorize
- Check user scope (scope = 'program_service:write') in order to perform this action
- In case error - generate 401 response
Validate Program Service
Check on existing Program service record
Check exist Program service by $.id.
if invalid - return 404 error (message: "Program service is not found!")
Validate Service
- When deactivate service from program service, check group(in which service include) don't include in this program.
- if invalid - return 404 error (message: "Delete this service from service group!")
Update program service
Update program service record by $.id set values:
Destination | Source |
---|---|
is_active | FALSE |
updated_at | :timestamp |
updated_by | user_id |