Removes a segment and all its stored cost codes.

Physically removes the segment and its active and previously deleted cost codes from the company's current definition.
Referenced data prevents deletion: HTTP 400 with error code JobCostSegmentInUse; remove editable references or contact support to retain historical data.
A failed deletion leaves the definition, segment indexes and cost codes unchanged.
An absent segment, including a repeated deletion, or a segment outside the company's current definition returns HTTP 404.
NOTE: Purpose of this endpoint is to set up initial company job costing, later changes may lead to issues.

Access: System, Admin, and ClientAdmin users with access rights to the company.

Employee call will return Forbidden result even for Employee own company.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
int32
required

Company whose current definition owns the segment.

int32
required

Active segment identifier.

Headers
string
Defaults to 1.0

The requested API version

string
Defaults to 1.0

The requested API version

Responses
204

Segment and all its stored cost codes removed.

Language
Credentials
Bearer
jwt
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json