{ "opencollection": "1.0.0", "info": { "name": "ServiceM8 REST Attachments Materials API", "version": "1.0" }, "request": { "auth": { "type": "apikey", "key": "X-API-Key", "value": "{{X-API-Key}}", "placement": "header" } }, "items": [ { "info": { "name": "Materials", "type": "folder" }, "items": [ { "info": { "name": "List materials", "type": "http" }, "http": { "method": "GET", "url": "https://api.servicem8.com/api_1.0/material.json", "params": [ { "name": "$filter", "value": "", "type": "query", "description": "OData-style filter expression, e.g. `$filter=active eq 1` or `edit gt '2026-01-01'`. Filtering is supported on indexed fields." } ] }, "docs": "List materials" }, { "info": { "name": "Create a material", "type": "http" }, "http": { "method": "POST", "url": "https://api.servicem8.com/api_1.0/material.json", "body": { "type": "json", "data": "{}" } }, "docs": "Create a material" }, { "info": { "name": "Retrieve a material", "type": "http" }, "http": { "method": "GET", "url": "https://api.servicem8.com/api_1.0/material/:uuid.json", "params": [ { "name": "uuid", "value": "", "type": "path", "description": "The UUID of the record." } ] }, "docs": "Retrieve a material" }, { "info": { "name": "Update a material", "type": "http" }, "http": { "method": "POST", "url": "https://api.servicem8.com/api_1.0/material/:uuid.json", "params": [ { "name": "uuid", "value": "", "type": "path", "description": "The UUID of the record." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Update a material" }, { "info": { "name": "Delete a material", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.servicem8.com/api_1.0/material/:uuid.json", "params": [ { "name": "uuid", "value": "", "type": "path", "description": "The UUID of the record." } ] }, "docs": "Delete a material" }, { "info": { "name": "List job materials", "type": "http" }, "http": { "method": "GET", "url": "https://api.servicem8.com/api_1.0/jobmaterial.json", "params": [ { "name": "$filter", "value": "", "type": "query", "description": "OData-style filter expression, e.g. `$filter=active eq 1` or `edit gt '2026-01-01'`. Filtering is supported on indexed fields." } ] }, "docs": "Line items (materials/labour) added to a specific job." }, { "info": { "name": "Create a job material", "type": "http" }, "http": { "method": "POST", "url": "https://api.servicem8.com/api_1.0/jobmaterial.json", "body": { "type": "json", "data": "{}" } }, "docs": "Create a job material" }, { "info": { "name": "Retrieve a job material", "type": "http" }, "http": { "method": "GET", "url": "https://api.servicem8.com/api_1.0/jobmaterial/:uuid.json", "params": [ { "name": "uuid", "value": "", "type": "path", "description": "The UUID of the record." } ] }, "docs": "Retrieve a job material" }, { "info": { "name": "Update a job material", "type": "http" }, "http": { "method": "POST", "url": "https://api.servicem8.com/api_1.0/jobmaterial/:uuid.json", "params": [ { "name": "uuid", "value": "", "type": "path", "description": "The UUID of the record." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Update a job material" }, { "info": { "name": "Delete a job material", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.servicem8.com/api_1.0/jobmaterial/:uuid.json", "params": [ { "name": "uuid", "value": "", "type": "path", "description": "The UUID of the record." } ] }, "docs": "Delete a job material" } ] } ], "bundled": true }