Skip to content

Update collection options

PUT
/api/v4/admin/active_context/collections/{id}
id
required
One of:
string

Collection name or ID

Media type application/json
object
queue_shard_count

Number of queue shards

integer
nullable
queue_shard_limit

Queue shard limit

integer
nullable
connection_id

Connection ID (defaults to active connection)

integer
nullable
Example generated
{
"queue_shard_count": 1,
"queue_shard_limit": 1,
"connection_id": 1
}

OK

Media type application/json
object
id
integer
name
string
connection_id
integer
options
object
created_at
string
updated_at
string
Example
{
"id": 1,
"name": "gitlab_active_context_code",
"connection_id": 1234,
"options": {
"queue_shard_count": 24,
"queue_shard_limit": 1000
},
"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

422 Unprocessable entity