Label Templates
Retrieves a paginated list of standard label templates provided by Patchworks. Can be filtered by name.
Authorizations
AuthorizationstringRequired
API key passed in the Authorization header. Format: <api-key>
Query parameters
filter[name]stringOptional
Filter results by name.
filter[id]integer[]Optional
Filter results by id.
pageinteger · min: 1OptionalDefault:
Page number for pagination.
1per_pageinteger · min: 1 · max: 100Optional
Number of results per page.
Responses
200
Successful response
application/json
401
Unauthenticated
403
Unauthorized
429
Too Many Requests. The rate limit for this user has been reached.
application/json
get/api/v1/patchworks/label-templates
GET /api/v1/patchworks/label-templates HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"data": [
{
"id": 1,
"name": "My Example",
"colour": "blue"
}
],
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"path": "https://app.wearepatchworks.com/core-main/api/v1/patchworks/label-templates",
"per_page": 25,
"to": 1,
"total": 1
},
"links": {
"first": "https://app.wearepatchworks.com/core-main/api/v1/patchworks/label-templates?page=1",
"last": "https://app.wearepatchworks.com/core-main/api/v1/patchworks/label-templates?page=1",
"prev": null,
"next": null
}
}Retrieves the details of a specific label template.
Authorizations
AuthorizationstringRequired
API key passed in the Authorization header. Format: <api-key>
Path parameters
label_templatestringRequired
The label template identifier.
Responses
200
Successful response
application/json
401
Unauthenticated
403
Unauthorized
404
Not Found. The record does not exist.
application/json
429
Too Many Requests. The rate limit for this user has been reached.
application/json
get/api/v1/patchworks/label-templates/{label_template}
GET /api/v1/patchworks/label-templates/{label_template} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"data": {
"id": 1,
"name": "My Example",
"colour": "blue"
}
}Last updated
Was this helpful?