Groupings: Add
This add endpoint will create or overwrite a grouping.
Creation of groupings
While you can forcefully create a grouping using the POST endpoint, groupings are typically created through segment requests. When creating a segment you may associate the segment with one or more groupings, and these will be automatically created for you.
Description of grouping endpoints
Grouping endpoints let you set additional details for each grouping key. These additional details are use in other Thrust Carbon products, such as correct grouping names on Thrust Calculator reports or in the Thrust Engage dashboard.
For example, a grouping with key '123' may have the name 'US HR' attached, and a description of 'Human Resources department for United States'. Since the grouping id of '123' is not understandable to most users, the name can be used instead.
Online interface
You may create/read/update/delete departments manually via your account settings at https://app.thrustcarbon.com
Considerations
- Please add data in chronological order (e.g. inputting parents before child groupings). A child grouping cannot be saved against a parent_id if that parent does not exist.
- Please make requests to this endpoint sequentially, not concurrently. You otherwise risk inserting an item before its parent is fully loaded.
- Please use the batch endpoint if you wish to add many groupings. You may otherwise hit our rate-limiter.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/groupings" \ -H "Content-Type: application/json" \ -d '{ "key": "123", "title": "US HR", "description": "Human Resources for the United States" }'{ "key": "123", "parent_key": null, "name": "US HR", "description": "Human Resources for the United States"}