Profile
Create Profile
Endpoint to create a new Profile
post/profile
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",
"profileId": "example text",
"startTime": "2026-01-01T00:00:00.000Z",
"endTime": "2026-01-01T00:00:00.000Z",
"startTimeUnixNano": "1767225600000000000",
"endTimeUnixNano": "1767225600000000000",
"durationNano": "1767225600000000000",
"profileType": "example text",
"unit": "example text",
"sampleCount": 42
}
}Response
Created successfully
Example response
{
"data": {
"projectId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"primaryEntityId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"primaryEntityType": "Example text value",
"profileId": "Example text value",
"traceId": "Example text value",
"spanId": "Example text value",
"startTime": "example_value",
"endTime": "example_value",
"startTimeUnixNano": "example_value",
"endTimeUnixNano": "example_value",
"durationNano": "example_value",
"profileType": "Example text value",
"unit": "Example text value",
"periodType": "Example text value",
"period": "example_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",
"sampleCount": 42,
"originalPayloadFormat": "Example text value"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.