Table of Contents |
---|
Specification
Page Properties | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
- Verify the validity of access token
- Check user scope (scope = 'substanse:write') in order to perform this action
- In case error - generate 401 response
...
Validate request using JSON schema (new_substance_schema.json)
Create new Substance
- Create new record in innms with status INACTIVE
- Fill data
Destination | Source |
---|---|
id | |
name | $.name |
name_original | $.name_original |
sctid | $.sctid |
is_active | TRUE |
inserted_at | :timestamp |
inserted_by | user_id |
updated_at | :timestamp |
updated_by | user_id |