Script Templates
Retrieves a paginated list of script templates. Can be filtered by name, hidden_from_marketplace, visible_for_marketplace, and private.
API key passed in the Authorization header. Format: <api-key>
Filter results by name.
Filter results by hidden_from_marketplace.
Filter results by visible_for_marketplace.
Filter results by private.
Filter results by visibility.
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/patchworks/script-templates HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"data": [
{
"id": 0,
"name": "string",
"description": "string",
"language": "string",
"company_id": 0,
"canonical_key": null,
"marketplace_company_id": null,
"tenant_script_version_id": null,
"updated_at": "2025-01-15T10:30:00.000000Z",
"created_at": "2025-01-15T10:30:00.000000Z"
}
],
"links": {
"first": "string",
"last": "string",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"per_page": 15,
"to": 1,
"total": 1
}
}Retrieves the details of a specific script template.
API key passed in the Authorization header. Format: <api-key>
The script template 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/patchworks/script-templates/{script_template} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"data": {
"id": 0,
"name": "string",
"description": "string",
"language": "string",
"company_id": 0,
"canonical_key": null,
"marketplace_company_id": null,
"tenant_script_version_id": null,
"updated_at": "2025-01-15T10:30:00.000000Z",
"created_at": "2025-01-15T10:30:00.000000Z"
}
}Permanently deletes a specific script template.
API key passed in the Authorization header. Format: <api-key>
The script template 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/patchworks/script-templates/{script_template} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"message": "Action completed successfully."
}Installs a specific script template.
API key passed in the Authorization header. Format: <api-key>
The script template 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/script-templates/{script_template}/install HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{}Last updated
Was this helpful?