Versions Compared

Key

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

Specification

Schema

Features

Input parameters 

  • id

Authorize

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

Validate Program Service

Check on existing Program service record 

  1. Check exist Program service by $.id.

    1. if invalid - return 404 error (message: "Program service is not found!")

Validate Service

  1. When deactivate service from program service, check group(in which service include) don't include in this program.
    1. 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_byuser_id