Skip to content

Deactivate an ActiveContext connection

PUT
/api/v4/admin/active_context/connections/deactivate
Media type application/json
object
connection_id

Connection ID (defaults to active connection)

integer
nullable
Example generated
{
"connection_id": 1
}

OK

Media type application/json
object
id
integer
name
string
adapter_class
string
prefix
string
active
boolean
created_at
string
updated_at
string
Example
{
"id": 1234,
"name": "elastic",
"adapter_class": "ActiveContext::Databases::Elasticsearch::Adapter",
"prefix": "gitlab",
"active": true,
"created_at": "2023-01-01T00:00:00.000Z",
"updated_at": "2023-01-01T00:00:00.000Z"
}

Bad Request

401 Unauthorized

403 Forbidden

404 Not found