Update datasource catalog policy
PATCH
/v1/admin/datasources/{id}/catalog-policy
const url = 'https://localhost:8080/v1/admin/datasources/example/catalog-policy';const options = { method: 'PATCH', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"scan_policy":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://localhost:8080/v1/admin/datasources/example/catalog-policy \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "scan_policy": "example" }'Updates the scan policy metadata for a datasource
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Datasource ID
Request Body
Section titled “Request Body”Scan policy payload
Media typeapplication/json
object
scan_policy
required
string
Example generated
{ "scan_policy": "example"}Responses
Section titled “Responses”OK
Media typeapplication/json
object
data
Example generated
{ "data": "example"}Bad Request
Media typeapplication/json
object
error
string
message
string
success
boolean
Example
{ "error": "", "message": "Success", "success": true}Unauthorized
Media typeapplication/json
object
error
string
message
string
success
boolean
Example
{ "error": "", "message": "Success", "success": true}Forbidden
Media typeapplication/json
object
error
string
message
string
success
boolean
Example
{ "error": "", "message": "Success", "success": true}Not Found
Media typeapplication/json
object
error
string
message
string
success
boolean
Example
{ "error": "", "message": "Success", "success": true}Internal Server Error
Media typeapplication/json
object
error
string
message
string
success
boolean
Example
{ "error": "", "message": "Success", "success": true}