{
  "id": "CON-001",
  "name": "Create Contact linked to Account",
  "description": "Creating a Contact with AccountId should link the Contact to the specified Account and populate Account fields.",
  "object": "Contact",
  "method": "POST",
  "endpoint": "/services/data/v63.0/sobjects/Contact",
  "payload": {
    "Name": "John Test Contact CON001",
    "LastName": "Test Contact CON001",
    "FirstName": "John",
    "Email": "john.con001@test.com",
    "Phone": "5550101",
    "AccountId": "{seed_Account_0}"
  },
  "expects": {
    "status_code": 201
  },
  "query_after": {
    "object": "Contact",
    "assertions": [
      {
        "field": "LastName",
        "operator": "eq",
        "value": "Test Contact CON001"
      },
      {
        "field": "AccountId",
        "operator": "is_not_null",
        "value": true
      },
      {
        "field": "Email",
        "operator": "eq",
        "value": "john.con001@test.com"
      }
    ]
  },
  "teardown": {
    "method": "DELETE",
    "endpoint": "/services/data/v63.0/sobjects/Contact/{id}"
  },
  "priority": "P1",
  "scene": "contact"
}
