curl --request PATCH \
--url https://us.infisical.com/api/v2/secret-scanning/data-sources/bitbucket/{dataSourceId} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"isAutoScanEnabled": true,
"config": {
"workspaceSlug": "<string>",
"includeRepos": [
"*"
]
}
}
'{
"dataSource": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"projectId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"type": "bitbucket",
"connectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"connection": {
"app": "bitbucket",
"name": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"config": {
"workspaceSlug": "<string>",
"includeRepos": [
"*"
]
},
"externalId": "<string>",
"description": "<string>",
"encryptedCredentials": "<unknown>",
"isAutoScanEnabled": true,
"isDisconnected": false
}
}Update the specified Bitbucket Data Source.
curl --request PATCH \
--url https://us.infisical.com/api/v2/secret-scanning/data-sources/bitbucket/{dataSourceId} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"isAutoScanEnabled": true,
"config": {
"workspaceSlug": "<string>",
"includeRepos": [
"*"
]
}
}
'{
"dataSource": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"projectId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"type": "bitbucket",
"connectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"connection": {
"app": "bitbucket",
"name": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"config": {
"workspaceSlug": "<string>",
"includeRepos": [
"*"
]
},
"externalId": "<string>",
"description": "<string>",
"encryptedCredentials": "<unknown>",
"isAutoScanEnabled": true,
"isDisconnected": false
}
}The ID of the Bitbucket Data Source to be updated.
The updated name of the Bitbucket Data Source. Must be slug-friendly.
1 - 64The updated description of the Bitbucket Data Source.
256Whether scans should be automatically performed when a push occurs to repositories associated with this Data Source.
Default Response
Show child attributes
bitbucket Show child attributes
Was this page helpful?