Segment REST Endpoints

Segment
Use the Cost Breakdown Structure segment service to create, view, update, and delete CBS segments for workspaces and projects. Segments determine the hierarchical depth of a CBS and designate how CBS codes are concatenated. Update Keys : 'segmentId'
Create a Project Segment
Method: post
Path: /primeapi/restapi/segment/project/{id}
Create a Workspace Segment
Method: post
Path: /primeapi/restapi/segment/workspace/{id}
Update a Project Segment
Method: put
Path: /primeapi/restapi/segment/project
Update a Workspace Segment
Method: put
Path: /primeapi/restapi/segment/workspace
View a Workspace Segment
Method: get
Path: /primeapi/restapi/segment/{id}?type={type}
View workspace segments by workspace or project
Method: get
Path: /primeapi/restapi/segment/project/{id}
View workspace segments by workspace or project
Method: get
Path: /primeapi/restapi/segment/workspace/{id}