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

Label Templates

List Label Templates

get

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: 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/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
  }
}

Get Label Template

get

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
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?