cURL
curl --request POST \ --url https://api.example.com/api/snoozes \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --data ' { "project_id": 123, "test_ids": [ "<string>" ], "snooze_until": "<string>", "description": "<string>", "created_by": "<string>", "scoped_to_environment_id": 123 } '
{ "data": { "snooze": { "id": 13, "project_id": 4, "test_ids": [ "a30a6eba6312f6b87ea5-55e241fbe3f4b8ae61ee" ], "snooze_until": "2026-04-01T00:00:00.000Z", "description": "Known flaky test, tracking in JIRA-5678", "created_from_test_run_id": null, "created_by": null, "created_at": "2026-03-25T10:30:00.000Z", "updated_at": "2026-03-25T10:30:00.000Z", "scoped_to_environment_id": null } } }
Create a new snooze for one or more tests
Bearer <your-api-key>
Show properties
null
curl -X POST \ https://dash.empirical.run/api/snoozes \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $EMPIRICALRUN_KEY" \ -d '{ "project_id": 4, "test_ids": ["a30a6eba6312f6b87ea5-55e241fbe3f4b8ae61ee"], "snooze_until": "2026-04-01T00:00:00.000Z", "description": "Known flaky test, tracking in JIRA-5678" }'
curl -X POST \ https://dash.empirical.run/api/snoozes \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $EMPIRICALRUN_KEY" \ -d '{ "project_id": 4, "test_ids": [ "a30a6eba6312f6b87ea5-55e241fbe3f4b8ae61ee", "b41b7fca7423g7c98fb6-66f352gcf4g5c9bf72ff" ], "snooze_until": "2026-04-15T00:00:00.000Z", "description": "Staging environment flakiness", "scoped_to_environment_id": 7 }'
Was this page helpful?