{
  "id": "TSK-001",
  "name": "Create Task linked to Contact",
  "description": "Creating a Task linked to a Contact should succeed and populate WhoId with the Contact ID.",
  "object": "Task",
  "method": "POST",
  "endpoint": "/services/data/v63.0/sobjects/Task",
  "payload": {
    "Subject": "Follow up call TSK001",
    "Status": "Not Started",
    "Priority": "Normal",
    "WhoId": "{seed_Contact_0}",
    "OwnerId": "{seed_User_0}",
    "ActivityDate": "2026-04-20",
    "Description": "Task TSK001: Follow up with contact"
  },
  "expects": {
    "status_code": 201
  },
  "query_after": {
    "object": "Task",
    "assertions": [
      {
        "field": "Subject",
        "operator": "eq",
        "value": "Follow up call TSK001"
      },
      {
        "field": "Status",
        "operator": "eq",
        "value": "Not Started"
      },
      {
        "field": "WhoId",
        "operator": "is_not_null",
        "value": true
      }
    ]
  },
  "teardown": {
    "method": "DELETE",
    "endpoint": "/services/data/v63.0/sobjects/Task/{id}"
  },
  "priority": "P1",
  "scene": "task"
}
