meta {
  name: Create heartbeats (unauthorized, readonly key)
  type: http
  seq: 13
}

post {
  url: {{BASE_URL}}/api/heartbeat
  body: json
  auth: bearer
}

auth:bearer {
  token: {{ADDITIONAL_READ_ONLY_TOKEN}}
}

body:json {
  [{
      "entity": "/home/user1/dev/project1/main.go",
      "project": "wakapi",
      "language": "Go",
      "is_write": true,
      "type": "file",
      "category": null,
      "branch": null,
      "time": {{tsNowMinus1Min}}
  }]
}

assert {
  res.status: eq 401
}
