Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Connection Pools

List Connection Pools

get

Retrieves a paginated list of connection pools.

Authorizations
AuthorizationstringRequired

API key passed in the Authorization header. Format: <api-key>

Query parameters
filter[name]stringOptional

Filter results by name.

pageinteger · min: 1Optional

Page number for pagination.

Default: 1
per_pageinteger · min: 1 · max: 100Optional

Number of results per page.

Responses
200

Successful response

application/json
get/api/v1/connection-pools
GET /api/v1/connection-pools HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
  "data": [
    {
      "id": 1,
      "limit": 1,
      "timeout": 1,
      "created_at": "2025-01-15T10:30:00.000000Z",
      "updated_at": "2025-01-15T10:30:00.000000Z",
      "name": "My Example",
      "connectors": []
    }
  ],
  "meta": {
    "current_page": 1,
    "from": 1,
    "last_page": 1,
    "path": "https://api.example.com/api/v1/connection-pools",
    "per_page": 25,
    "to": 1,
    "total": 1
  },
  "links": {
    "first": "https://api.example.com/api/v1/connection-pools?page=1",
    "last": "https://api.example.com/api/v1/connection-pools?page=1",
    "prev": null,
    "next": null
  }
}

Create Connection Pool

post

Creates a new connection pool.

Authorizations
AuthorizationstringRequired

API key passed in the Authorization header. Format: <api-key>

Body
limitinteger · min: 1Required
timeoutinteger · min: 1 · nullableOptional
namestring · max: 255Required
Responses
200

Successful response

application/json
post/api/v1/connection-pools
POST /api/v1/connection-pools HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 43

{
  "limit": 1,
  "timeout": 1,
  "name": "My Example"
}
{
  "data": {
    "id": 1,
    "limit": 1,
    "timeout": 1,
    "created_at": "2025-01-15T10:30:00.000000Z",
    "updated_at": "2025-01-15T10:30:00.000000Z",
    "name": "My Example",
    "connectors": []
  }
}

Get Connection Pool

get

Retrieves the details of a specific connection pool.

Authorizations
AuthorizationstringRequired

API key passed in the Authorization header. Format: <api-key>

Path parameters
connection_poolstringRequired

The connection pool identifier.

Query parameters
includestringOptional

Comma-separated list of relationships to include. Available: connectors.system

Responses
200

Successful response

application/json
get/api/v1/connection-pools/{connection_pool}
GET /api/v1/connection-pools/{connection_pool} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
  "data": {
    "id": 1,
    "limit": 1,
    "timeout": 1,
    "created_at": "2025-01-15T10:30:00.000000Z",
    "updated_at": "2025-01-15T10:30:00.000000Z",
    "name": "My Example",
    "connectors": []
  }
}

Update Connection Pool

put

Updates an existing connection pool.

Authorizations
AuthorizationstringRequired

API key passed in the Authorization header. Format: <api-key>

Path parameters
connection_poolstringRequired

The connection pool identifier.

Body
limitinteger · min: 1Optional
timeoutinteger · min: 1 · nullableOptional
namestring · min: 1 · max: 255Optional
Responses
200

Successful response

application/json
put/api/v1/connection-pools/{connection_pool}
PUT /api/v1/connection-pools/{connection_pool} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 43

{
  "limit": 1,
  "timeout": 1,
  "name": "My Example"
}
{
  "data": {
    "id": 1,
    "limit": 1,
    "timeout": 1,
    "created_at": "2025-01-15T10:30:00.000000Z",
    "updated_at": "2025-01-15T10:30:00.000000Z",
    "name": "My Example",
    "connectors": []
  }
}

Delete Connection Pool

delete

Permanently deletes a specific connection pool.

Authorizations
AuthorizationstringRequired

API key passed in the Authorization header. Format: <api-key>

Path parameters
connection_poolstringRequired

The connection pool identifier.

Responses
200

Successful response

application/json
messagestringOptional
delete/api/v1/connection-pools/{connection_pool}
DELETE /api/v1/connection-pools/{connection_pool} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
  "message": "Action completed successfully."
}

Clear Connection Pool

post

Removes all pending requests from a specific connection pool.

Authorizations
AuthorizationstringRequired

API key passed in the Authorization header. Format: <api-key>

Path parameters
connection_poolstringRequired

The connection pool identifier.

Responses
200

Successful response

application/json
objectOptional
post/api/v1/connection-pools/{connection_pool}/clear
POST /api/v1/connection-pools/{connection_pool}/clear HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{}

Last updated

Was this helpful?