Skip to main content
POST
/
api
/
test-results
Upload Vitest result data
curl --request POST \
  --url https://archal.ai/api/test-results \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "projectName": "<string>",
  "services": [
    "<string>"
  ],
  "results": [
    {
      "name": "<string>",
      "file": "<string>",
      "duration": 123,
      "error": "<string>"
    }
  ],
  "summary": {
    "total": 123,
    "passed": 123,
    "failed": 123,
    "skipped": 123,
    "duration": 123
  },
  "timestamp": "2023-11-07T05:31:56Z",
  "sessionId": "<string>"
}
'
{
  "ok": true
}

Documentation Index

Fetch the complete documentation index at: https://docs.archal.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
projectName
string
required
Maximum string length: 200
services
string[]
required
Maximum array length: 20
results
object[]
required
Maximum array length: 5000
summary
object
required
timestamp
string<date-time>
required
sessionId
string

Response

Request accepted.

ok
boolean
required