curl --request POST \
--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 within a project for testing decision logic with sample data.
curl --request POST \
--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 to create the test event in
Test event data to create
Show child attributes
The created test event
The created 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?