{ "opencollection": "1.0.0", "info": { "name": "Air Cost Centers API", "version": "v2" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Cost Centers", "type": "folder" }, "items": [ { "info": { "name": "List cost centers", "type": "http" }, "http": { "method": "GET", "url": "https://api-ext-sboxmeta.partners.spotnana.com/v2/companies/:companyId/cost-centers", "params": [ { "name": "companyId", "value": "4974a66b-7493-4f41-908c-58ba81093947", "type": "path", "description": "Identifier for company." }, { "name": "externalId", "value": "cost-center-external-id", "type": "query", "description": "External id of the cost center." } ] }, "docs": "This endpoint lists cost centers of a company. If an externalId is provided in the query parameter\nonly the cost center with the provided externalId is returned.\n" }, { "info": { "name": "Create cost center", "type": "http" }, "http": { "method": "POST", "url": "https://api-ext-sboxmeta.partners.spotnana.com/v2/companies/:companyId/cost-centers", "params": [ { "name": "companyId", "value": "4974a66b-7493-4f41-908c-58ba81093947", "type": "path", "description": "Identifier for company." } ], "body": { "type": "json", "data": "{}" } }, "docs": "This endpoint creates a cost center." }, { "info": { "name": "Get cost center", "type": "http" }, "http": { "method": "GET", "url": "https://api-ext-sboxmeta.partners.spotnana.com/v2/companies/:companyId/cost-centers/:costCenterId", "params": [ { "name": "companyId", "value": "4974a66b-7493-4f41-908c-58ba81093947", "type": "path", "description": "Identifier for company." }, { "name": "costCenterId", "value": "4974a66b-7493-4f41-908c-58ba81093947", "type": "path", "description": "Identifier for cost-center." } ] }, "docs": "This endpoint gets a cost center by ID." }, { "info": { "name": "Update cost center", "type": "http" }, "http": { "method": "PUT", "url": "https://api-ext-sboxmeta.partners.spotnana.com/v2/companies/:companyId/cost-centers/:costCenterId", "params": [ { "name": "companyId", "value": "4974a66b-7493-4f41-908c-58ba81093947", "type": "path", "description": "Identifier for company." }, { "name": "costCenterId", "value": "4974a66b-7493-4f41-908c-58ba81093947", "type": "path", "description": "Identifier for cost-center." } ], "body": { "type": "json", "data": "{}" } }, "docs": "This endpoint updates a cost center by ID." }, { "info": { "name": "Delete cost center", "type": "http" }, "http": { "method": "DELETE", "url": "https://api-ext-sboxmeta.partners.spotnana.com/v2/companies/:companyId/cost-centers/:costCenterId", "params": [ { "name": "companyId", "value": "4974a66b-7493-4f41-908c-58ba81093947", "type": "path", "description": "Identifier for company." }, { "name": "costCenterId", "value": "4974a66b-7493-4f41-908c-58ba81093947", "type": "path", "description": "Identifier for cost-center." }, { "name": "detachUsers", "value": "", "type": "query", "description": "Whether to remove this cost center's reference from associated user entities." } ] }, "docs": "This endpoint deletes a cost center by ID." }, { "info": { "name": "List cost centers", "type": "http" }, "http": { "method": "POST", "url": "https://api-ext-sboxmeta.partners.spotnana.com/v3/companies/:companyId/cost-centers/list", "params": [ { "name": "companyId", "value": "4974a66b-7493-4f41-908c-58ba81093947", "type": "path", "description": "Identifier for company." } ], "body": { "type": "json", "data": "{}" } }, "docs": "This endpoint lists cost centers of a company.\n" } ] } ], "bundled": true }