Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Disable a collection’s S3 output writeback destination.
Python
import requests url = "https://www.datalab.to/api/v1/collections/{collection_id}/s3-source/output" headers = {"X-API-Key": "<api-key>"} response = requests.delete(url, headers=headers) print(response.text)
curl --request DELETE \ --url https://www.datalab.to/api/v1/collections/{collection_id}/s3-source/output \ --header 'X-API-Key: <api-key>'
const options = {method: 'DELETE', headers: {'X-API-Key': '<api-key>'}}; fetch('https://www.datalab.to/api/v1/collections/{collection_id}/s3-source/output', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
package main import ( "fmt" "net/http" "io" ) func main() { url := "https://www.datalab.to/api/v1/collections/{collection_id}/s3-source/output" req, _ := http.NewRequest("DELETE", url, nil) req.Header.Add("X-API-Key", "<api-key>") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) }
{ "id": 123, "bucket": "<string>", "prefix": "<string>", "region": "<string>", "credentials_type": "access_key", "aws_access_key_id": "<string>", "aws_secret_access_key_redacted": "<string>", "sync_status": "<string>", "last_sync_started_at": "2023-11-07T05:31:56Z", "last_sync_completed_at": "2023-11-07T05:31:56Z", "last_sync_file_count": 123, "last_sync_error": "<string>", "output_bucket": "<string>", "output_prefix": "<string>", "output_region": "<string>", "output_credentials_type": "source", "output_aws_access_key_id": "<string>", "output_aws_secret_access_key_redacted": "<string>", "writeback_status": "<string>", "last_writeback_run_id": 123, "last_writeback_started_at": "2023-11-07T05:31:56Z", "last_writeback_completed_at": "2023-11-07T05:31:56Z", "last_writeback_file_count": 123, "last_writeback_total_file_count": 123, "last_writeback_failed_file_count": 123, "last_writeback_error": "<string>", "last_writeback_error_code": "<string>", "last_writeback_manifest_uri": "<string>" }
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>", "input": "<unknown>", "ctx": {} } ] }
Successful Response
access_key
public
source
Was this page helpful?