Updates a workspace connector.
PUT
/v1/m/sourcescope/workspace-connectors/{id}
const url = 'https://example.com/v1/m/sourcescope/workspace-connectors/example';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"config":{"additionalProperty":"example"},"enabled":true,"id":"example","kind":"example","name":"example","note":"example","poll_seconds":1,"secrets":{"additionalProperty":"example"},"status":"example","workspace_ref":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/v1/m/sourcescope/workspace-connectors/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "config": { "additionalProperty": "example" }, "enabled": true, "id": "example", "kind": "example", "name": "example", "note": "example", "poll_seconds": 1, "secrets": { "additionalProperty": "example" }, "status": "example", "workspace_ref": "example" }'Updates a workspace connector. The name, kind and workspace_ref are immutable (they form the natural key + unique index).
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
Path parameter id.
Header Parameters
Section titled “Header Parameters ” X-Olivares-Tenant
string format: uuid
Target tenant id; required when the principal can act in more than one tenant.
Request Body required
Section titled “Request Body required ” Media type application/json
Any of:
object
config
id
kind
name
secrets
status
null
Example generated
{ "config": { "additionalProperty": "example" }, "enabled": true, "id": "example", "kind": "example", "name": "example", "note": "example", "poll_seconds": 1, "secrets": { "additionalProperty": "example" }, "status": "example", "workspace_ref": "example"}Responses
Section titled “ Responses ”OK
Media type application/json
object
Example generated
{}Bad request
Media type application/json
object
Example generated
{}Unauthenticated
Media type application/json
object
Example generated
{}Forbidden
Media type application/json
object
Example generated
{}Not found
Media type application/json
object
Example generated
{}Conflict / setup required
Media type application/json
object
Example generated
{}Rate limited
Media type application/json
object
Example generated
{}