curl --request PATCH \
--url https://api.example.com/api/projects/{projectId}/test-events \
--header 'Content-Type: application/json' \
--data '
{
"testEvent": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"context": "<string>",
"category": "private",
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"documentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"context": "<string>",
"category": "private",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"documentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Create a new test event or update an existing one if a matching ID is provided.
curl --request PATCH \
--url https://api.example.com/api/projects/{projectId}/test-events \
--header 'Content-Type: application/json' \
--data '
{
"testEvent": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"context": "<string>",
"category": "private",
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"documentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"context": "<string>",
"category": "private",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"documentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}ID of the project containing the test event
Test event data to create or update
Show child attributes
The created or updated test event
The created or updated test event
Unique identifier of the test event
Name of the test event
JSON context data for the test event
Category of the test event (private, shared, or global)
private, shared, global ID of the project this test event belongs to
ID of the user who owns this test event (for private events)
ID of the document this test event is associated with
Was this page helpful?