Table of Contents |
---|
...
Page Properties | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||
|
Expand | ||
---|---|---|
| ||
|
...
Save signed content to media storage
Save data to rule_engine_rules collection (Mongo DB) according to https://e-health-ua.atlassian.net/wiki/spaces/EH/pages/17049387155
Request structure
...
API paragraph not found
Authorize
Verify the validity of access token
in case of error - return 401 (“Invalid access token”) in case of validation fails
Verify that token is not expired
in case of error - return 401 (“Invalid access token”)
Check user scopes in order to perform this action (scope = 'rule_engine_rule:write')
return 403 (“Your scope does not allow to access this resource. Missing allowances: rule_engine_rule:write”) in case of invalid scope(s)
Headers
API paragraph not found
Request data validation
Validate legal entity
...
Check
name
,code
andvalue
block is submittedin case of error - return 422 ('required property <property> was not present')
Check that rule engine rule with
code
is unique (extract active rule_engine_rule with the same code.system and code.value)in case of error - return 409 ("Rule engine rule with such code and system already exists")
Processing
...
API paragraph not found
Response structure
...
API paragraph not found
Post-processing processes
...
API paragraph not found
HTTP status codes
...
API paragraph not found