Specification
- id
- requestAllowed
- description
Authorize
- Check user scope (scope = `program_service:write`) in order to perform this action
- In case error - generate 401 response
Validate status
Program service should be active (is_active == TRUE)
- Validate `is_active` == FALSE
- if invalid - return 409 eror (message: "Program service should be active !")
Validate PK Program service
Check on existing Program service record
Check existProgram service by $.id.
if invalid - return 404 error (message: "Program service is not found!")
Update Program service
Update program service requestAllowed and description
values:
Destination | Source |
---|---|
requestAllowed | FALSE |
description | $.description |
updated_at | :timestamp |
updated_by | user_id |