Update Export Schedule
(v2)PUT
Changes an export schedule and returns it. Changing the cadence or pausing the schedule re-registers its next run; exportType is fixed at creation, because changing it would re-target every future run.
curl -X PUT "https://api.confident-ai.com/v2/export-schedules/{exportScheduleId}" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>" \
-H "Content-Type: application/json" \
-d '{
"recurrence": "ONCE",
"repeatEvery": 1,
"repeatUnit": "MINUTE",
"startAt": "2025-02-01T09:00:00Z",
"maxRuns": 12,
"endAt": "2025-12-31T23:59:59Z",
"name": "Weekly checkout conversations",
"description": "Last week'\''s checkout conversations for the data team.",
"filters": {
"operator": "AND",
"groups": [
{
"operator": "AND",
"filters": [
{
"category": "Name",
"condition": "Is",
"value": "checkout-assistant"
}
]
}
]
},
"environment": "production",
"annotationSelectionType": "Traces",
"destinationId": "<EXPORT-DESTINATION-ID>",
"enabled": true
}'{
"success": true,
"data": {
"id": "<EXPORT-SCHEDULE-ID>",
"name": "Weekly checkout conversations",
"description": "Last week's checkout conversations for the data team.",
"exportType": "TRACES",
"filters": {
"operator": "AND",
"groups": [
{
"operator": "AND",
"filters": [
{
"category": "User Id",
"condition": "Is less than",
"value": "string",
"key": "string"
}
]
}
]
},
"environment": "production",
"annotationSelectionType": "Traces",
"destinationId": "<EXPORT-DESTINATION-ID>",
"scheduleSettings": {
"recurrence": "ONCE",
"repeatEvery": 1,
"repeatUnit": "MINUTE",
"startAt": "2025-02-01T09:00:00.000Z",
"endAt": "2025-12-31T23:59:59.000Z",
"maxRuns": 12,
"runCount": 6,
"lastRunAt": "2025-02-24T09:00:00.000Z",
"enabled": true
},
"createdAt": "2025-01-15T10:30:00.000Z",
"updatedAt": "2025-02-24T09:00:00.000Z"
},
"link": "https://app.confident-ai.com/project/<PROJECT-ID>/project-settings/exports",
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Path parameters
exportScheduleIdstringRequiredThe id of the export schedule.
Request body
recurrenceenumHow often a schedule fires:
ONCEruns a single time atstartAt,INTERVALrepeats everyrepeatEveryrepeatUnits.Show 2 enum valuesHide 2 enum values
ONCEINTERVAL
repeatEveryinteger | nullHow many
repeatUnits apart the runs are, for anINTERVALschedule. Sendnullto clear it.repeatUnitenum | nullThe unit
repeatEverycounts for anINTERVALschedule.Show 5 enum valuesHide 5 enum values
MINUTEHOURDAYWEEKMONTH
startAtstring | nullWhen the schedule first runs, as an ISO 8601 datetime. Send
nullto start it immediately.maxRunsinteger | nullHow many times the schedule runs before it stops. Send
nullto let it run indefinitely.endAtstring | nullWhen the schedule stops running, as an ISO 8601 datetime. Send
nullto leave it open-ended.namestringThe name of the schedule.
descriptionstring | nullWhat the schedule exports. Send
nullto clear it.filtersobjectA set of filter groups combined by a top-level operator. Each group combines its filter rows by its own operator, and each row matches one property, such as
NameorUser Id, against a value with a condition such asIsorContains.Show 2 propertiesHide 2 properties
operatorenumRequiredShow 2 enum valuesHide 2 enum values
ANDOR
groupslist of objectsRequiredShow 2 propertiesHide 2 properties
operatorenumRequiredShow 2 enum valuesHide 2 enum values
ANDOR
filterslist of objectsRequiredShow 4 propertiesHide 4 properties
categoryenumRequiredShow 98 enum valuesHide 98 enum values
User IdCustomer IdCustomer NameThread IdTrace UUIDTrace NameTrace VersionTrace StatusTrace TagsTraceSpan UUIDNameSpan NameSpan TypeSpan StatusMetrics StatusError StatusCalled toolHanded off toHanded off byNearest parent of typeAnywhere underTop levelNameModelProviderIntegrationInput argumentEmbedderChunk SizeTop-KHyperparameterDatasetDataset NameTest Run IDIdentifierTest FileStatusOfficialEvals ModeTests PassedTests FailedPass RateFail RateStar RatingThumbs RatingExplanationExpected OutputExpected OutcomeAnnotatorEnd UserAnnotation TypeAnnotation NameAnnotation DateAnnotation RatingAnnotation ThumbsAnnotation ChoiceAnnotation Yes / NoAnnotation TextMetric ScoreMetric StatusNameMetadataClassifierMetricMetric NameTrace CountTest Case IDRequested review fromAssigned toTagsLabelsTools CalledFinalizedGolden IDIngestion TaskLatencyEnvironmentReview flagVulnerabilityVulnerability TypeAttack MethodRisk CategoryFrameworkAssessment IDPrompt AliasPrompt VersionPrompt LabelPrompt Commit HashPromptAnnotationsFailure ModeRecommendedSub-mode NameSub-mode RecommendedSub-mode CertaintyStatus CodeActor Type
conditionenum | enum | enum | enum | enum | enum | enum | enum | enum | enumRequiredShow 10 variantsHide 10 variants
enum
Show 6 enum valuesHide 6 enum values
Is less thanIs equal or less thanIs greater thanIs equal or greater thanIs equal toDoes not equal
- OR
enum
Show 2 enum valuesHide 2 enum values
HasHas not
- OR
enum
Show 2 enum valuesHide 2 enum values
IsIs not
- OR
enum
Show 2 enum valuesHide 2 enum values
Is one ofIs not one of
- OR
enum
Show 4 enum valuesHide 4 enum values
IsIs notIs emptyIs not empty
- OR
enum
Show 2 enum valuesHide 2 enum values
ContainsDoes not contain
- OR
enum
Show 3 enum valuesHide 3 enum values
ContainsContains onlyDoes not contain
- OR
enum
Show 4 enum valuesHide 4 enum values
Has decreased by more thanHas decreased by less thanHas increased by more thanHas increased by less than
- OR
enum
Show 1 enum valueHide 1 enum value
Has changed from
- OR
enum
Show 1 enum valueHide 1 enum value
Is between
valuestring | number | list of stringsRequiredShow 3 variantsHide 3 variants
string
- OR
number
- OR
list of strings
keystring
environmentstring | nullThis is the environment where your trace was posted, which helps with separating and debugging traces from different environments on the Confident AI platform. Any name up to 64 characters is accepted, for example production, staging or eu-prod.
annotationSelectionTypeenum | nullThe annotation source for an
ANNOTATIONSexport: traces, spans, or threads.Show 3 enum valuesHide 3 enum values
SpansThreadsTraces
destinationIdstring | nullThe id of the export destination each run delivers its file to. Send
nullto leave the schedule without one.enabledbooleanWhether the schedule runs. Send
falseto pause it without deleting it.
Response
Update Export Schedule succeeded.
successbooleanIndicates if the request was successful.
dataobjectA recurring export of this project's data. Each run covers the window since the previous run and narrows it by
filters, where an emptygroupslist exports everything in that window.Show 11 propertiesHide 11 properties
idstringThe id of the schedule, generated by Confident AI.
namestringThe name of the schedule.
descriptionstring | nullWhat the schedule exports, or
nullwhen it has no description.exportTypeenumWhat each run of the schedule exports. Only project-scoped export types can be scheduled:
TRACES_WITH_SPANS,TRACES,CONVERSATIONS,CONVERSATION_METRICS,ANNOTATIONS,TEST_RUNS. Audit log exports are organization-scoped and are not export schedules. Please configure them on the platform instead.Show 7 enum valuesHide 7 enum values
TRACESTRACES_WITH_SPANSCONVERSATIONSCONVERSATION_METRICSANNOTATIONSTEST_RUNSAUDIT_LOGS
filtersobjectA set of filter groups combined by a top-level operator. Each group combines its filter rows by its own operator, and each row matches one property, such as
NameorUser Id, against a value with a condition such asIsorContains.Show 2 propertiesHide 2 properties
operatorenumShow 2 enum valuesHide 2 enum values
ANDOR
groupslist of objectsShow 2 propertiesHide 2 properties
operatorenumShow 2 enum valuesHide 2 enum values
ANDOR
filterslist of objectsShow 4 propertiesHide 4 properties
categoryenumShow 98 enum valuesHide 98 enum values
User IdCustomer IdCustomer NameThread IdTrace UUIDTrace NameTrace VersionTrace StatusTrace TagsTraceSpan UUIDNameSpan NameSpan TypeSpan StatusMetrics StatusError StatusCalled toolHanded off toHanded off byNearest parent of typeAnywhere underTop levelNameModelProviderIntegrationInput argumentEmbedderChunk SizeTop-KHyperparameterDatasetDataset NameTest Run IDIdentifierTest FileStatusOfficialEvals ModeTests PassedTests FailedPass RateFail RateStar RatingThumbs RatingExplanationExpected OutputExpected OutcomeAnnotatorEnd UserAnnotation TypeAnnotation NameAnnotation DateAnnotation RatingAnnotation ThumbsAnnotation ChoiceAnnotation Yes / NoAnnotation TextMetric ScoreMetric StatusNameMetadataClassifierMetricMetric NameTrace CountTest Case IDRequested review fromAssigned toTagsLabelsTools CalledFinalizedGolden IDIngestion TaskLatencyEnvironmentReview flagVulnerabilityVulnerability TypeAttack MethodRisk CategoryFrameworkAssessment IDPrompt AliasPrompt VersionPrompt LabelPrompt Commit HashPromptAnnotationsFailure ModeRecommendedSub-mode NameSub-mode RecommendedSub-mode CertaintyStatus CodeActor Type
conditionenum | enum | enum | enum | enum | enum | enum | enum | enum | enumShow 10 variantsHide 10 variants
enum
Show 6 enum valuesHide 6 enum values
Is less thanIs equal or less thanIs greater thanIs equal or greater thanIs equal toDoes not equal
- OR
enum
Show 2 enum valuesHide 2 enum values
HasHas not
- OR
enum
Show 2 enum valuesHide 2 enum values
IsIs not
- OR
enum
Show 2 enum valuesHide 2 enum values
Is one ofIs not one of
- OR
enum
Show 4 enum valuesHide 4 enum values
IsIs notIs emptyIs not empty
- OR
enum
Show 2 enum valuesHide 2 enum values
ContainsDoes not contain
- OR
enum
Show 3 enum valuesHide 3 enum values
ContainsContains onlyDoes not contain
- OR
enum
Show 4 enum valuesHide 4 enum values
Has decreased by more thanHas decreased by less thanHas increased by more thanHas increased by less than
- OR
enum
Show 1 enum valueHide 1 enum value
Has changed from
- OR
enum
Show 1 enum valueHide 1 enum value
Is between
valuestring | number | list of stringsShow 3 variantsHide 3 variants
string
- OR
number
- OR
list of strings
keystring
environmentstring | nullThis is the environment where your trace was posted, which helps with separating and debugging traces from different environments on the Confident AI platform. Any name up to 64 characters is accepted, for example production, staging or eu-prod.
annotationSelectionTypeenum | nullThe annotation source for an
ANNOTATIONSexport: traces, spans, or threads.Show 3 enum valuesHide 3 enum values
SpansThreadsTraces
destinationIdstring | nullThe id of the export destination each run delivers its file to, or
nullwhen the schedule has none.scheduleSettingsobject | nullThe cadence an export schedule runs on, together with how far through that cadence it is.
Show 9 propertiesHide 9 properties
recurrenceenumHow often a schedule fires:
ONCEruns a single time atstartAt,INTERVALrepeats everyrepeatEveryrepeatUnits.Show 2 enum valuesHide 2 enum values
ONCEINTERVAL
repeatEveryinteger | nullHow many
repeatUnits apart the runs are, ornullfor a schedule that does not repeat.repeatUnitenum | nullThe unit
repeatEverycounts for anINTERVALschedule.Show 5 enum valuesHide 5 enum values
MINUTEHOURDAYWEEKMONTH
startAtstring | nullWhen the schedule first runs, or
nullwhen it started immediately.endAtstring | nullWhen the schedule stops running, or
nullwhen it is open-ended.maxRunsinteger | nullHow many times the schedule runs before it stops, or
nullwhen it runs indefinitely.runCountintegerHow many times the schedule has run so far.
lastRunAtstring | nullWhen the schedule last ran, or
nullwhen it has never run.enabledbooleanWhether the schedule is currently running.
createdAtstringWhen the schedule was created.
updatedAtstringWhen the schedule was last changed.
linkstringThis is the URL of the resource on the Confident AI platform.
deprecatedbooleanIndicates if this endpoint is deprecated.