Specification
Input parameters
- id
- requestAllowed
Authorize
- Verify the validity of access token
- Check user scope (scope = 'service_catalog:write) in order to perform this action
- In case error - generate 401 response
Validate status
Service/Service group should be active (is_active == TRUE)
- Validate `is_active` == FALSE
- if invalid - return 409 eror (message: "Service/Service group should be active !")
Validate PK Medication
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!")
Update service/service group
Update service/service group requestAllowed
values:
Destination | Source |
---|---|
requestAllowed | FALSE |
updated_at | :timestamp |
updated_by | user_id |