Group NPI List Update
curl --request POST \
--url https://test-instockrx-api.azurewebsites.net/api/v1/groups/npi-update \
--header 'Content-Type: application/json' \
--header 'X-INVIEW-AUTH: <api-key>' \
--data '[
1234567890
]'const options = {
method: 'POST',
headers: {'X-INVIEW-AUTH': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify([1234567890])
};
fetch('https://test-instockrx-api.azurewebsites.net/api/v1/groups/npi-update', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://test-instockrx-api.azurewebsites.net/api/v1/groups/npi-update"
payload = [1234567890]
headers = {
"X-INVIEW-AUTH": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Utility
Group NPI List Update
Updates the list of pharmacy NPIs associated with the specified group. Valid NPIs are added to the group, while unknown NPIs are recorded as pending invitations.
Validation Rules
| Field | Required | Type | Rules |
|---|---|---|---|
| npiList (body) | Yes | long[] | Array of NPI numbers. Example: [1234567890, 2345678901] |
POST
/
api
/
v1
/
groups
/
npi-update
Group NPI List Update
curl --request POST \
--url https://test-instockrx-api.azurewebsites.net/api/v1/groups/npi-update \
--header 'Content-Type: application/json' \
--header 'X-INVIEW-AUTH: <api-key>' \
--data '[
1234567890
]'const options = {
method: 'POST',
headers: {'X-INVIEW-AUTH': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify([1234567890])
};
fetch('https://test-instockrx-api.azurewebsites.net/api/v1/groups/npi-update', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://test-instockrx-api.azurewebsites.net/api/v1/groups/npi-update"
payload = [1234567890]
headers = {
"X-INVIEW-AUTH": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Authorizations
Custom API Key authentication. Default header: X-INVIEW-AUTH.
Body
application/jsonapplication/json-patch+jsontext/jsonapplication/*+json
The list of NPI numbers to associate with the group.
Response
OK