Table of Contents
Specification
...
Authorize
- Check user scope (scope = 'service_catalog:write') in order to perform this action
- In case error - generate 401 response
Validate Service/Service group
Check on existing Service/Service group record
Check exist Service/Service group by $.id.
if invalid - return 404 error (message: "Service/Service group is not found!")
Validate Service Group subgroup
- When deactivate service group, check Service group don't have active subroup:
- if invalid - return 422 error (message: "ServiceGroup should not have active subgroups")
Update Service/Service group
Update Service/Service group record by $.id set values:
Destination | Source |
---|---|
is_active | FALSE |
updated_at | :timestamp |
updated_by | user_id |