Grouping Types: Add
Adds a new grouping type to an organisation.
Slug
When you create a grouping type, the ‘slug’ is the key you will be using in future requests. You can enter your own slug identifier that will be used in future requests, or you can use the one we generate and return. A slug is only valid if it is lowercase letters, numbers and dashes.
If there is already a slug within the organisation, a random number will be appended to the organisation.
Example slugs:
- The name 'Cost centre' will have the slug
cost-centre - The name 'Default' will already exist, so the slug will become
default2
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/grouping-types" \ -H "Content-Type: application/json" \ -d '{ "name": "Cost Centre", "description": "Our organisation\'s internal cost centre code" }'{ "slug": "cost-centre", "name": "Cost Centre", "description": "Our organisation's internal cost centre code", "is_reportable": true}