Update source settings.
Changed onUpdates configuration for a data source, such as auto-sync frequency, crawl depth, or file filters. Use this to fine-tune how the source is indexed and kept up to date.
Request
- Base URLhttps://app.customgpt.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The unique identifier of the agent (formerly known as project).
The unique identifier of the source to update.
Request body
Example request
{
"executive_js": true,
"data_refresh_frequency": "never",
"create_new_pages": true,
"refresh_existing_pages": "never",
"refresh_schedule": {
"days": [
1,
3,
5
],
"hours": [
"08:00",
"23:59"
]
},
"advanced_refresh_schedule": {
"version": 2,
"times_by_day": {
"1": [
"07:00"
]
}
},
"image_extraction_type": "sync_from_sitemap"
}Response
Successfully updated agent source.
Example response
{
"status": "success",
"data": {
"id": 1,
"created_at": "2021-01-01 00:00:00",
"updated_at": "2021-01-01 00:00:00",
"type": "sitemap",
"sub_type": "images-opengraph",
"settings": {
"executive_js": true,
"data_refresh_frequency": "never",
"create_new_pages": true,
"refresh_existing_pages": "never",
"sitemap_path": "https://example.com/sitemap.xml",
"image_extraction_type": "sync_from_sitemap"
},
"pages": [
{
"id": 1,
"page_url": "https://example.com",
"page_url_hash": "d41d8cd98f00b204e9800998ecf8427e",
"project_id": 1,
"s3_path": "project-1/page-1/file.pdf",
"crawl_status": "queued",
"index_status": "queued",
"is_file": true,
"is_refreshable": true,
"is_file_kept": true,
"filename": "file.pdf",
"filesize": 100,
"created_at": "2021-01-01 00:00:00",
"updated_at": "2021-01-01 00:00:00",
"deleted_at": "2021-01-01 00:00:00"
}
]
}
}Changes
- breaking
the request property
became not nullable - breaking
removed the enum value
neveralwaysif_updatedof the request property - breaking
removed the enum value
neverdailyweeklymonthlyadvancedof the request property - breaking
the
request property type changed fromarraytoobject - warning
added the new
422.00enum value to the/response property for the response status - warning
added the new
422.00enum value to the/response property for the response status - warning
added the new
422.00enum value to the/response property for the response status - warning
added the new
422.00enum value to the/response property for the response status - warning
added the new
advancedenum value to the//response property for the response status - warning
added the new
alwaysenum value to the//response property for the response status - warning
added the new
dailyenum value to the//response property for the response status - warning
added the new
if_updatedenum value to the//response property for the response status - warning
added the new
monthlyenum value to the//response property for the response status - warning
added the new
neverenum value to the//response property for the response status - warning
added the new
neverenum value to the//response property for the response status - warning
added the new
web-imagesenum value to the/response property for the response status - warning
added the new
weeklyenum value to the//response property for the response status - info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
- info
added the new optional request property
- info
the
request property default value changed fromto{} - info
added the new
advancedenum value to the request property - info
added the new
alwaysenum value to the request property - info
added the new
dailyenum value to the request property - info
added the new
if_updatedenum value to the request property - info
added the new
monthlyenum value to the request property - info
added the new
neverenum value to the request property - info
added the new
neverenum value to the request property - info
added the new
weeklyenum value to the request property - info
added the non-success response with the status
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
/to the response with the status - info
removed the
neveralwaysif_updatedenum value from the//response property for the response status - info
removed the
neverdailyweeklymonthlyadvancedenum value from the//response property for the response status
- breaking
- info
endpoint added
- info