{ "opencollection": "1.0.0", "info": { "name": "SmartHR Business Establishments Departments API", "version": "1.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Departments", "type": "folder" }, "items": [ { "info": { "name": "List departments", "type": "http" }, "http": { "method": "GET", "url": "https://{tenant}.smarthr.jp/api/v1/departments", "params": [ { "name": "page", "value": "", "type": "query", "description": "Page number, starting at 1." }, { "name": "per_page", "value": "", "type": "query", "description": "Number of records per page (max 100)." } ] }, "docs": "Lists departments for the tenant." }, { "info": { "name": "Create a department", "type": "http" }, "http": { "method": "POST", "url": "https://{tenant}.smarthr.jp/api/v1/departments", "body": { "type": "json", "data": "{}" } }, "docs": "Creates a new department." }, { "info": { "name": "Get a department", "type": "http" }, "http": { "method": "GET", "url": "https://{tenant}.smarthr.jp/api/v1/departments/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "The unique identifier of the resource." } ] }, "docs": "Retrieves a single department by ID." }, { "info": { "name": "Update a department", "type": "http" }, "http": { "method": "PATCH", "url": "https://{tenant}.smarthr.jp/api/v1/departments/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "The unique identifier of the resource." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Updates an existing department." }, { "info": { "name": "Delete a department", "type": "http" }, "http": { "method": "DELETE", "url": "https://{tenant}.smarthr.jp/api/v1/departments/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "The unique identifier of the resource." } ] }, "docs": "Deletes a department." } ] } ], "bundled": true }