ЕСОЗ - публічна документація

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Specification

Input parameters 

  • id
  • requestAllowed
  • description

Authorize

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

Validate status

Program service should be active (is_active == TRUE)

  1. Validate `is_active` == FALSE
    1. if invalid  - return 409 eror (message: "Program service should be active !")

Validate PK Program service

Check on existing Program service record 

  1. Check existProgram service by $.id.

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

Update Program service

Update program service requestAllowed and description values:

Destination
Source
requestAllowedFALSE
description$.description
updated_at:timestamp
updated_byuser_id


  • No labels