Exception Instance
Create Exception Instance
Endpoint to create a new Exception Instance
post/exceptions
Request
- Base URLhttps://oneuptime.com/api
- AuthAPI key in header APIKey
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"data": {
"primaryEntityId": "123e4567-e89b-12d3-a456-426614174000",
"time": "2026-01-01T00:00:00.000Z",
"timeUnixNano": "1767225600000000000",
"fingerprint": "example text"
}
}Response
Created successfully
Example response
{
"data": {
"projectId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"primaryEntityId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"primaryEntityType": "Example text value",
"time": "example_value",
"timeUnixNano": "example_value",
"exceptionType": "Example text value",
"stackTrace": "Example text value",
"message": "Example text value",
"spanStatusCode": 42,
"escaped": true,
"traceId": "Example text value",
"spanId": "Example text value",
"sessionId": "Example text value",
"userId": "Example text value",
"fingerprint": "Example text value",
"spanName": "Example text value",
"release": "Example text value",
"environment": "Example text value",
"parsedFrames": "Example text value",
"attributes": "example_value",
"attributeKeys": [
"item1",
"item2",
"item3"
],
"entityKeys": [
"item1",
"item2",
"item3"
],
"serviceEntityKey": "Example text value",
"hostEntityKey": "Example text value",
"k8sPodEntityKey": "Example text value",
"k8sNodeEntityKey": "Example text value",
"k8sClusterEntityKey": "Example text value",
"containerEntityKey": "Example text value"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.