Table of Contents | ||||
---|---|---|---|---|
|
Purpose
...
This WS is designed to deactivate brand by ID (post)
Specification
...
Page Properties | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Logic
...
This method is used to deactivate INNM Dosage. Fields descriptions are listed in request Example view.
...
Input parameter | Values | Type | Description | Example |
---|---|---|---|---|
id | String |
|
Request structure
...
API paragraph not found
Authorize
...
Verify the validity of access token
Check user scope (scope = 'innm_dosage:deactivate') in order to perform this action
In case error - generate 401 response
Request to process the request using a token in the headers
Headers
...
Наприклад:
Content-Type:application/json
Authorization:Bearer c2778f3064753ea70de870a53795f5c9
Request data validation
...
Validate PK Medication
Purpose validation: Check on existing Medication record
...
|
Processing
...
Update medication
Update medication record by $.id set values:
Destination | Source |
is_active | FALSE |
updated_at | :timestamp |
updated_by | user_id |
Response structure
...
See on Apiary
Example:
Expand | ||
---|---|---|
| ||
|
Expand | ||
---|---|---|
| ||
|
Post-processing processes
...
API paragraph not found
HTTP status codes
...
Page Properties | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
...