- getV1CompanyIndustry - Get a company industry selection
- putV1CompanyIndustry - Update a company industry selection
Get industry selection for the company.
import { Gusto } from "@speakeasy-sdks/gusto";
import { GetV1CompanyIndustryRequest, GetV1CompanyIndustryResponse } from "@speakeasy-sdks/gusto/dist/sdk/models/operations";
const sdk = new Gusto({
security: {
authorization: "",
},
});
const companyId: string = "tempora";
sdk.industrySelection.getV1CompanyIndustry(companyId).then((res: GetV1CompanyIndustryResponse) => {
if (res.statusCode == 200) {
// handle response
}
});
Parameter | Type | Required | Description |
---|---|---|---|
companyId |
string | ✔️ | The UUID of the company |
config |
AxiosRequestConfig | ➖ | Available config options for making requests. |
Promise<operations.GetV1CompanyIndustryResponse>
Update the company industry selection by passing in industry classification codes: NAICS code, SICS code and industry title. Our UI is leveraging Middesk API to determine industry classification codes.
import { Gusto } from "@speakeasy-sdks/gusto";
import {
PutV1CompanyIndustryRequest,
PutV1CompanyIndustryRequestBody,
PutV1CompanyIndustryResponse,
} from "@speakeasy-sdks/gusto/dist/sdk/models/operations";
const sdk = new Gusto({
security: {
authorization: "",
},
});
const companyId: string = "aspernatur";
const requestBody: PutV1CompanyIndustryRequestBody = {
naicsCode: "voluptas",
sicCodes: [
"voluptas",
"minima",
],
title: "Miss",
};
sdk.industrySelection.putV1CompanyIndustry(companyId, requestBody).then((res: PutV1CompanyIndustryResponse) => {
if (res.statusCode == 200) {
// handle response
}
});
Parameter | Type | Required | Description |
---|---|---|---|
companyId |
string | ✔️ | The UUID of the company |
requestBody |
operations.PutV1CompanyIndustryRequestBody | ➖ | N/A |
config |
AxiosRequestConfig | ➖ | Available config options for making requests. |