POST
/
api
/
v1
/
tasks
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"
    }
  ]
}'
{
  "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

Authorization
string
header
required

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.