Skip to content

Industries

The business’s list of industries: the line of business a person, company, client or opportunity is in, such as Architecture or Healthcare. People, companies, clients and opportunities share one list, managed under Industry in the CRM’s and the Clients’ Customize settings.

Every endpoint acts as the person whose personal access token is used. Reading industries needs the permission to view companies; creating one needs the permission to create companies; renaming, making default and deleting need the permission to edit companies. The list is the same for everyone who may read it, member, manager or administrator; administrators hold every permission. A person without the permission an endpoint needs gets 403. To give a person, company, client or opportunity a industry, send its id as industryId when creating or updating that record.

One industry in the business’s list.

Field Type Description
id string The industry’s id. Read only.
name string Name, 1–191 characters, unique in the business.
isDefault boolean Whether this is the business’s default industry. The default is listed first and cannot be deleted; at most one industry is the default.
isInUse boolean True when any person or company has this industry. A industry in use cannot be deleted. Read only.
createdAt datetime When it was created. Read only.
updatedAt datetime When it last changed. Read only.

Returns the business’s industries: the default first, then newest first, unless sortField is sent.

GET /v1/industries

Parameters

Parameter In Type Required Description
page query integer No Page number, from 1. Default 1.
limit query integer No Rows per page. Default 20, at most 1000.
search query string No Text in the name.
isInUse query boolean No true: only industries someone has; false: only unused ones.
updatedSince query datetime No Only records changed at or after this moment. Records deleted since then are not reported.
sortField query string No name, createdAt or updatedAt. Default: the default first, then newest first.
sortOrder query string No asc or desc. Default asc for name, desc otherwise.

Rules

  • 403 when the person may not view companies.
  • 400 when updatedSince, sortField or sortOrder is not valid.

Example request

Terminal window
curl "https://api.onesuite.io/v1/industries?limit=2" \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"data": [
{
"id": "cm2h7a4lt0005rt52jk3lm4no",
"name": "Architecture",
"isDefault": true,
"isInUse": true,
"createdAt": "2026-02-11T08:30:12.004Z",
"updatedAt": "2026-06-03T13:44:51.287Z"
},
{
"id": "cm2h7b9mv0007rt52pq5rs6tu",
"name": "Healthcare",
"isDefault": false,
"isInUse": false,
"createdAt": "2026-11-21T09:58:40.771Z",
"updatedAt": "2026-11-21T09:58:40.771Z"
}
],
"totalCount": 9,
"page": 1,
"limit": 2
}

Returns one industry.

GET /v1/industries/:id

Parameters

Parameter In Type Required Description
id path string Yes The industry’s id.

Rules

  • 403 when the person may not view companies.
  • 404 when the industry does not exist in the business.

Example request

Terminal window
curl "https://api.onesuite.io/v1/industries/cm2h7a4lt0005rt52jk3lm4no" \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"data": {
"id": "cm2h7a4lt0005rt52jk3lm4no",
"name": "Architecture",
"isDefault": true,
"isInUse": true,
"createdAt": "2026-02-11T08:30:12.004Z",
"updatedAt": "2026-06-03T13:44:51.287Z"
}
}

Adds a industry to the business’s list. It is not the default.

POST /v1/industries

Parameters

Parameter In Type Required Description
name body string Yes Name, 1–191 characters, unique in the business.

Rules

  • 403 when the person may not create companies.
  • 400 when the name is empty or longer than 191 characters.
  • 409 when a industry with that name already exists.

Example request

Terminal window
curl "https://api.onesuite.io/v1/industries" \
-X POST \
-H "X-API-Key: $ONESUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"Healthcare"}'

Example response — status 201

{
"data": {
"id": "cm2h7b9mv0007rt52pq5rs6tu",
"name": "Healthcare",
"isDefault": false,
"isInUse": false,
"createdAt": "2026-11-21T09:58:40.771Z",
"updatedAt": "2026-11-21T09:58:40.771Z"
}
}

Renames the industry, or makes it the default: send isDefault true and the previous default stops being the default. Every person, company, client and opportunity that has the industry shows the new name.

PATCH /v1/industries/:id

Parameters

Parameter In Type Required Description
id path string Yes The industry’s id.
name body string No New name, 1–191 characters, unique in the business.
isDefault body boolean No true makes this the default industry. false is refused: make another industry the default instead.

Rules

  • 403 when the person may not edit companies.
  • 404 when the industry does not exist in the business.
  • 400 when the body is empty, the name is empty or too long, or isDefault is false.
  • 409 when another industry already has that name.

Example request

Terminal window
curl "https://api.onesuite.io/v1/industries/cm2h7b9mv0007rt52pq5rs6tu" \
-X PATCH \
-H "X-API-Key: $ONESUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"Healthcares"}'

Example response — status 200

{
"data": {
"id": "cm2h7b9mv0007rt52pq5rs6tu",
"name": "Healthcares",
"isDefault": false,
"isInUse": false,
"createdAt": "2026-11-21T09:58:40.771Z",
"updatedAt": "2026-11-21T10:03:17.402Z"
}
}

Deletes a industry that no person or company has. Opportunities that have it are left without a industry.

DELETE /v1/industries/:id

Parameters

Parameter In Type Required Description
id path string Yes The industry’s id.

Rules

  • 403 when the person may not edit companies.
  • 404 when the industry does not exist in the business.
  • 409 when a person or company has the industry: give them another industry first.
  • 409 when it is the default industry: make another one the default first.

Example request

Terminal window
curl "https://api.onesuite.io/v1/industries/cm2h7b9mv0007rt52pq5rs6tu" \
-X DELETE \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"message": "Industry deleted"
}