Request
Send the command as a POST to the following endpoint:
<https://teletracking.app/api/customdatareceiver/externalcustomdata
>
Both header and body are required and described below.
Retrieve Access Token
curl -k -X POST https://teletracking.app/api/getaccesstoken \
-H "Content-Type: application/json" \
-d '{
"header": {
"sourceId": "a1b2c3d4-e5f6-7890-abcd-1234567890ab",
"tenantId": "123e4567-e89b-12d3-a456-426614174000",
"userId": "987f6543-dcba-4321-fedc-0987654321fe"
},
"body": {
"key": "superSecureClientToken123!"
}
}'
Submit External Custom Data
curl -I -X POST https://teletracking.app/api/customdatareceiver/externalcustomdata \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ACCESS_TOKEN_HERE" \
-d '{
"header": {
"id": "b6e2aef4-3dbf-4f49-a3e2-9c5bcf7a6ad7",
"schemaUri": "https://sv.telesv.com/schemas/CreateExternalCustomData_v1.001.json",
"version": "1.001",
"command": "CreateExternalCustomData",
"sourceId": "15a8671a-7716-4d53-9798-6716aff7f9af",
"correlationId": "1f9cbe61-9de3-4ab0-b6e6-81cf7b4c35d8",
"tenantId": "75de8cfd-40af-427a-9279-cae6ea33248e",
"dateTime": "2024-08-07T14:20:00Z",
"userId": "f69489bc-e6d3-42a6-86d8-acf4012f3ee9",
"ttl": 100000
},
"body": {
"externalSource": "PWCDIS",
"facilityExternalId": "101",
"visitExternalId": "VN123456",
"locationExternalId": "Room1",
"patientExternalId": "MRN123456",
"externalDataCategory": "PatientAttribute",
"externalDataId": "UD11",
"externalDataValue": "Combative"
}
}'