Update Destination
PUThttps://api.confident-ai.com/v2/export-destinations/{exportDestinationId}
Updates an export destination and returns it with its credentials masked. Omit a credential to leave the stored one alone; resending the masked value a read returned does the same, so a destination you read and send straight back keeps working.
curl -X PUT "https://api.confident-ai.com/v2/export-destinations/{exportDestinationId}" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>" \
-H "Content-Type: application/json" \
-d '{
"name": "Nightly S3 exports",
"type": "S3",
"bucket": "acme-llm-exports",
"region": "us-east-1",
"accessKeyId": "AKIAIOSFODNN7EXAMPLE",
"secretAccessKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY",
"pathPrefix": "confident-ai/",
"enabled": true
}'{
"success": true,
"data": {
"id": "<EXPORT-DESTINATION-ID>",
"name": "Nightly S3 exports",
"type": "S3",
"bucket": "acme-llm-exports",
"region": "us-east-1",
"accessKeyId": "***************XAMPLE",
"secretAccessKey": "***************PLEKEY",
"pathPrefix": "confident-ai/",
"enabled": true,
"createdAt": "2025-01-15T10:30:00.000Z",
"updatedAt": "2025-01-20T08:15: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
exportDestinationIdstringRequiredThe id of the export destination.
Request body
namestringThe name of the destination, as it appears in your project.
typeenumThe kind of storage exports are uploaded to. Only
S3is supported today, and any other member is rejected on create and update.Show 4 enum valuesHide 4 enum values
S3GCSAZURE_BLOBSNOWFLAKE
bucketstringThe name of the bucket exports are uploaded to.
regionstringThe region the bucket lives in.
accessKeyIdstringA new access key id for the bucket. Omit it to leave the stored key id untouched. Sending back the masked value a read returned leaves it untouched too, so a destination you read and send straight back keeps working.
secretAccessKeystringA new secret access key for the bucket. Omit it to leave the stored secret untouched. Sending back the masked value a read returned leaves it untouched too; the mask is never written into storage.
pathPrefixstring | nullA folder inside the bucket to write exports under. A leading slash is stripped and a trailing one added, so
/confident-aiis stored asconfident-ai/. Send null to clear it and write to the root of the bucket; an empty string is ignored.enabledbooleanWhether export schedules may upload to this destination. Set it to false to stop uploads without deleting the destination.
Response
Update Destination succeeded.
successbooleanIndicates if the request was successful.
dataobjectA storage destination export schedules upload to, with its credentials masked. Confident AI returns the last six characters of each credential so you can tell which one is stored, never the credential itself.
Show 11 propertiesHide 11 properties
idstringThe id of the destination, generated by Confident AI.
namestringThe name of the destination.
typeenumThe kind of storage exports are uploaded to. Only
S3is supported today, and any other member is rejected on create and update.Show 4 enum valuesHide 4 enum values
S3GCSAZURE_BLOBSNOWFLAKE
bucketstringThe name of the bucket exports are uploaded to.
regionstringThe region the bucket lives in.
accessKeyIdstringThe stored access key id, masked: fifteen asterisks followed by its last six characters. The real key id is never returned. Send this value back on an update to leave the stored key id alone, or omit the field entirely.
secretAccessKeystringThe stored secret access key, masked: fifteen asterisks followed by its last six characters. The real secret is never returned. Send this value back on an update to leave the stored secret alone, or omit the field entirely.
pathPrefixstring | nullThe folder inside the bucket exports are written under, always ending in a slash, or null when they are written to the root of the bucket.
enabledbooleanWhether export schedules may upload to this destination.
createdAtstringThe timestamp when the destination was created.
updatedAtstringThe timestamp when the destination was last updated.
linkstringThis is the URL of the resource on the Confident AI platform.
deprecatedbooleanIndicates if this endpoint is deprecated.