Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Specification

...

Authorize

  1. Check user scope (scope = 'service_catalog:write') in order to perform this action
    1. In case error - generate 401 response

Validate Service/Service group

Check on existing Service/Service group record 

  1. Check exist Service/Service group by $.id.

    1. if invalid - return 404 error (message: "Service/Service group is not found!")

Validate Service Group subgroup

  1. When deactivate service group, check Service group don't have active subroup:
    1. 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_byuser_id