Skip to content

Update datasource

PATCH
/v1/admin/datasources/{id}

Updates datasource metadata, config fields, or secret references

id
required
string

Datasource ID

Datasource update payload

object
config_fields
Array<object>
object
clear
boolean
is_secret
boolean
key
required
string
value
string
name
string
scan_policy
string
secret_backend
string

OK

object
config_fields
Array<object>
object
has_value
boolean
is_secret
boolean
key
string
value
string
created_at
string
id
string
is_disabled
boolean
name
string
scan_policy
string
secret_backend
string
type
string
updated_at
string

Bad Request

object
error
string
message
string
Example
Success
success
boolean
Example
true

Unauthorized

object
error
string
message
string
Example
Success
success
boolean
Example
true

Forbidden

object
error
string
message
string
Example
Success
success
boolean
Example
true

Not Found

object
error
string
message
string
Example
Success
success
boolean
Example
true

Internal Server Error

object
error
string
message
string
Example
Success
success
boolean
Example
true