Data Pools
Retrieves a paginated list of data pools. Can be filtered by name.
API key passed in the Authorization header. Format: <api-key>
Filter results by name.
Filter results by id.
Filter results by ,.
Page number for pagination.
1Number of results per page.
Successful response
Unauthenticated
Unauthorized
Too Many Requests. The rate limit for this user has been reached.
GET /api/v1/data-pool HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"data": [
{
"id": 1,
"name": "My Example",
"description": "A description of the resource",
"data_pool_template_id": 1,
"created_at": "2025-01-15T10:30:00.000000Z",
"updated_at": "2025-01-15T10:30:00.000000Z"
}
],
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"path": "https://api.example.com/api/v1/data-pool",
"per_page": 25,
"to": 1,
"total": 1
},
"links": {
"first": "https://api.example.com/api/v1/data-pool?page=1",
"last": "https://api.example.com/api/v1/data-pool?page=1",
"prev": null,
"next": null
}
}Creates a new data pool.
API key passed in the Authorization header. Format: <api-key>
Successful response
Unauthenticated
Unauthorized
Validation Error
Too Many Requests. The rate limit for this user has been reached.
POST /api/v1/data-pool HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 67
{
"description": "A description of the resource",
"name": "My Example"
}{
"data": {
"id": 1,
"name": "My Example",
"description": "A description of the resource",
"data_pool_template_id": 1,
"created_at": "2025-01-15T10:30:00.000000Z",
"updated_at": "2025-01-15T10:30:00.000000Z"
}
}Retrieves the details of a specific data pool.
API key passed in the Authorization header. Format: <api-key>
The data pool identifier.
Successful response
Unauthenticated
Unauthorized
Not Found. The record does not exist.
Too Many Requests. The rate limit for this user has been reached.
GET /api/v1/data-pool/{data_pool} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"data": {
"id": 1,
"name": "My Example",
"description": "A description of the resource",
"data_pool_template_id": 1,
"created_at": "2025-01-15T10:30:00.000000Z",
"updated_at": "2025-01-15T10:30:00.000000Z"
}
}Updates an existing data pool.
API key passed in the Authorization header. Format: <api-key>
The data pool identifier.
Successful response
Unauthenticated
Unauthorized
Not Found. The record does not exist.
Validation Error
Too Many Requests. The rate limit for this user has been reached.
PUT /api/v1/data-pool/{data_pool} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 67
{
"description": "A description of the resource",
"name": "My Example"
}{
"data": {
"id": 1,
"name": "My Example",
"description": "A description of the resource",
"data_pool_template_id": 1,
"created_at": "2025-01-15T10:30:00.000000Z",
"updated_at": "2025-01-15T10:30:00.000000Z"
}
}Permanently deletes a specific data pool.
API key passed in the Authorization header. Format: <api-key>
The data pool identifier.
Successful response
Unauthenticated
Unauthorized
Not Found. The record does not exist.
Too Many Requests. The rate limit for this user has been reached.
DELETE /api/v1/data-pool/{data_pool} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"message": "Action completed successfully."
}Retrieves a paginated list of deduped data records for a specific data pool. Can be filtered by flow_id, flow_run_id, step_id, entity_type_id, value, created_before, and created_after.
API key passed in the Authorization header. Format: <api-key>
The data pool identifier.
Filter results by flow_id.
Filter results by flow_run_id.
Filter results by step_id.
Filter results by entity_type_id.
Filter results by value.
Filter results by created_before.
Filter results by created_after.
Page number for pagination.
1Number of results per page.
Successful response
Unauthenticated
Unauthorized
Not Found. The record does not exist.
Too Many Requests. The rate limit for this user has been reached.
GET /api/v1/data-pool/{data_pool}/deduped-data HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"data": [
{
"id": 1,
"name": "My Example",
"description": "A description of the resource",
"data_pool_template_id": 1,
"created_at": "2025-01-15T10:30:00.000000Z",
"updated_at": "2025-01-15T10:30:00.000000Z"
}
],
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"path": "https://api.example.com/api/v1/data-pool/{data_pool}/deduped-data",
"per_page": 25,
"to": 1,
"total": 1
},
"links": {
"first": "https://api.example.com/api/v1/data-pool/{data_pool}/deduped-data?page=1",
"last": "https://api.example.com/api/v1/data-pool/{data_pool}/deduped-data?page=1",
"prev": null,
"next": null
}
}Triggers the download of de-dupe data for a specific data pool. A CSV file is generated and added to the file downloads section in the Patchworks dashboard.
API key passed in the Authorization header. Format: <api-key>
The data pool identifier.
Successful response
Unauthenticated
Unauthorized
Not Found. The record does not exist.
Too Many Requests. The rate limit for this user has been reached.
GET /api/v1/data-pool/{data_pool}/deduped-data/download HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{}Imports de-dupe values into a specific data pool from a CSV file containing value and entity_type_id headers. All records in the import file are added as new items, and any existing items in the data pool are left unchanged.
API key passed in the Authorization header. Format: <api-key>
The data pool identifier.
Successful response
Unauthenticated
Unauthorized
Not Found. The record does not exist.
Validation Error
Too Many Requests. The rate limit for this user has been reached.
POST /api/v1/data-pool/{data_pool}/deduped-data/import HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 49
{
"deduped_data_file": "example_deduped_data_file"
}{}Deletes specific records from a data pool.
API key passed in the Authorization header. Format: <api-key>
The unique identifier of the id.
Successful response
Unauthenticated
Unauthorized
Not Found. The record does not exist.
Too Many Requests. The rate limit for this user has been reached.
DELETE /api/v1/data-pool/{id}/deduped-data/delete-records HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"message": "Action completed successfully."
}Last updated
Was this helpful?