Download OpenAPI specification:Download
API for managing patch actions
Retrieve a list of all patch action records with optional filtering and pagination
| limit | integer [ 1 .. 100 ] Default: 50 Maximum number of records to return |
| offset | integer >= 0 Default: 0 Number of records to skip for pagination |
| sort | string Field to sort by |
| order | string Default: "desc" Enum: "asc" "desc" Sort order (asc or desc) |
| filter | string Filter conditions in JSON format |
| search | string Search term for text fields |
{- "success": true,
- "data": [
- {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "name": "Update Product Prices",
- "description": "string",
- "targetEntity": "product",
- "conditions": { },
- "patches": [
- {
- "field": "string",
- "operation": "set",
- "value": null
}
], - "batchSize": 100,
- "status": "draft",
- "executionHistory": [
- {
- "executionId": "string",
- "startTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z",
- "status": "running",
- "processedCount": 0,
- "errorCount": 0,
- "errors": [
- "string"
]
}
], - "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
], - "total": 0
}Create a new patch action with the provided data
| name required | string Name of the patch action |
| description | string Description of what the patch action does |
| targetEntity required | string The entity type this patch targets |
object Conditions that must be met for the patch to apply | |
required | Array of objects |
| batchSize | integer [ 1 .. 1000 ] Default: 100 Number of records to process in each batch |
| status | string Default: "draft" Enum: "draft" "ready" "running" "completed" "failed" "cancelled" Status of the patch action |
object Additional metadata |
{- "name": "Update Product Prices",
- "description": "string",
- "targetEntity": "product",
- "conditions": { },
- "patches": [
- {
- "field": "string",
- "operation": "set",
- "value": null
}
], - "batchSize": 100,
- "status": "draft",
- "metadata": { }
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "name": "Update Product Prices",
- "description": "string",
- "targetEntity": "product",
- "conditions": { },
- "patches": [
- {
- "field": "string",
- "operation": "set",
- "value": null
}
], - "batchSize": 100,
- "status": "draft",
- "executionHistory": [
- {
- "executionId": "string",
- "startTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z",
- "status": "running",
- "processedCount": 0,
- "errorCount": 0,
- "errors": [
- "string"
]
}
], - "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Retrieve a specific patch action by its ID
| id required | string Patch action ID |
{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "name": "Update Product Prices",
- "description": "string",
- "targetEntity": "product",
- "conditions": { },
- "patches": [
- {
- "field": "string",
- "operation": "set",
- "value": null
}
], - "batchSize": 100,
- "status": "draft",
- "executionHistory": [
- {
- "executionId": "string",
- "startTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z",
- "status": "running",
- "processedCount": 0,
- "errorCount": 0,
- "errors": [
- "string"
]
}
], - "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}Update an existing patch action with new data
| id required | string Patch action ID |
| name required | string Name of the patch action |
| description | string Description of what the patch action does |
| targetEntity required | string The entity type this patch targets |
object Conditions that must be met for the patch to apply | |
required | Array of objects |
| batchSize | integer [ 1 .. 1000 ] Default: 100 Number of records to process in each batch |
| status | string Default: "draft" Enum: "draft" "ready" "running" "completed" "failed" "cancelled" Status of the patch action |
object Additional metadata |
{- "name": "Update Product Prices",
- "description": "string",
- "targetEntity": "product",
- "conditions": { },
- "patches": [
- {
- "field": "string",
- "operation": "set",
- "value": null
}
], - "batchSize": 100,
- "status": "draft",
- "metadata": { }
}{- "success": true,
- "data": {
- "_id": "60f7b1b3e4b0e8b3f8b3f8b3",
- "name": "Update Product Prices",
- "description": "string",
- "targetEntity": "product",
- "conditions": { },
- "patches": [
- {
- "field": "string",
- "operation": "set",
- "value": null
}
], - "batchSize": 100,
- "status": "draft",
- "executionHistory": [
- {
- "executionId": "string",
- "startTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z",
- "status": "running",
- "processedCount": 0,
- "errorCount": 0,
- "errors": [
- "string"
]
}
], - "metadata": { },
- "createdAt": "2023-01-15T08:00:00Z",
- "updatedAt": "2023-01-15T10:30:00Z"
}
}