Table of Contents |
---|
- Specification
Status colour Green title done - Apiary
Status colour Green title Done
...
- 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 (link !!! TBD)
Create new Substance
- Create new record in innms with status INACTIVE
- Fill data
Destination | Source | ||
---|---|---|---|
id | |||
name | $.name | ||
name_original | $.name_originalinnm_identifier | ||
sctid | $.innm_identifier | status | INACTIVEsctid |
is_active | TRUE | ||
inserted_at | :timestamp | ||
inserted_by | user_id | ||
updated_at | :timestamp | ||
updated_by | user_id |
Return data structure
- Fill response data structure
- id
- name
- innm_identifier
- status