Barcoding
Notifications
Orders
Patients
- GETGet patients
- POSTCreate a patient
- GETGet a patient's details
- PUTUpdate a patient's details
- GETGet guardian relationship types
- GETGet a patient's orders
- GETGet a patient's risk factors
- POSTCreate risk factors
- POSTCreate a single risk factor
- PATCHConfirm risk factor match
- DELDeactivate a risk factor
- POSTAdd freeform risk factor text
Prescribers
Prescriptions
Products and Materials
Products and Materials Inventory
- GETGet inventory
- POSTCreate product inventory
- GETGet inventory lot details
- PUTUpdate inventory lot
- GETGet a prescription product inventory
- POSTCreate prescription product inventory
- GETGet a non-prescription product inventory
- POSTCreate non-prescription product inventory
- GETGet order material inventory
- POSTCreate order material product inventory
- PATCHAdjust inventory quantity
- GETGet inventory associations
- POSTCreate inventory association
- DELRemove inventory association
Reports
Search
Tasks
Webhooks
Tasks
Create a task
Create a new task. Tasks can optionally be associated with patients, orders, or prescriptions.
POST
/
api
/
v1
/
tasks
Copy
curl --request POST \
--url https://api.byblend.com/api/v1/tasks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"assignee": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"name": "Confirm shelf-stability of recent batch",
"description": "Please find the most recent batch (April 2, 2025) of the topical rapamycin and confirm shelf-stability given the new expiration date of May 14, 2025.",
"category_code": "T06",
"status_code": "NEW",
"order_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"patient_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"prescription_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"watchers": [
{
"id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708"
}
]
}'
Copy
{
"id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"assignee": {
"id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"first_name": "Rodrigo",
"last_name": "Davis",
"role": "admin"
},
"completed_at": "2025-02-01T20:10:43Z",
"created_at": "2025-01-01T00:00:00Z",
"created_by_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"assignee_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"name": "Confirm shelf-stability of recent batch",
"description": "Please find the most recent batch (April 2, 2025) of the topical rapamycin and confirm shelf-stability given the new expiration date of May 14, 2025.",
"category_code": "T01",
"category_name": "Order",
"status_code": "NEW",
"status_name": "New",
"order_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"patient_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"prescription_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"watchers": [
{
"id": "1326d1e5-ba9a-42b5-8fe2-38882aa65708",
"first_name": "Daphne",
"last_name": "Dafoe",
"role": "admin"
}
]
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
201 - application/json
Task created successfully
The response is of type object
.
Copy
curl --request POST \
--url https://api.byblend.com/api/v1/tasks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"assignee": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"name": "Confirm shelf-stability of recent batch",
"description": "Please find the most recent batch (April 2, 2025) of the topical rapamycin and confirm shelf-stability given the new expiration date of May 14, 2025.",
"category_code": "T06",
"status_code": "NEW",
"order_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"patient_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"prescription_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"watchers": [
{
"id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708"
}
]
}'
Copy
{
"id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"assignee": {
"id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"first_name": "Rodrigo",
"last_name": "Davis",
"role": "admin"
},
"completed_at": "2025-02-01T20:10:43Z",
"created_at": "2025-01-01T00:00:00Z",
"created_by_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"assignee_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"name": "Confirm shelf-stability of recent batch",
"description": "Please find the most recent batch (April 2, 2025) of the topical rapamycin and confirm shelf-stability given the new expiration date of May 14, 2025.",
"category_code": "T01",
"category_name": "Order",
"status_code": "NEW",
"status_name": "New",
"order_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"patient_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"prescription_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"watchers": [
{
"id": "1326d1e5-ba9a-42b5-8fe2-38882aa65708",
"first_name": "Daphne",
"last_name": "Dafoe",
"role": "admin"
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.