Sort Cost Sheet

PUT /ws/rest/service/v1/cost/cbs/sort

Purpose

This sorts the WBS codes present in the Project Cost Sheet.

Notes:

Request Format

There are three input parameters for the web service call:

Project number

project_number(Required): Specify the project/shell number to update column data of project cost sheet

If the user enters a wrong project number and the web service call fails, the existing error code on incorrect project number will be used to report the error to the user.

Note: The Sort Cost Sheet must be used only for one project at a time.

Type

This is an optional parameter, and if the parameter is not present, the project Cost Sheet will be sorted based on the CBS codes.

Default value will be CBS

Identifier for the column (the column that the sorting must happen)

The only supported value is: CBS

Sort order

This is an optional input parameter.

Default value will be ascending

sortOrder: Identifier to define the sort order (ascending or descending).

The values are: 'asc' or 'desc'.

Note: The user should not perform any action when sortCostSheet web service is being executed.

Response Format

A JSON object is returned in the following format.

{

"data": [],

"message": [],

"status": <REST status code value>

}

A successful response displays a status code 200.

A failed response displays a message with a status code.

Additional Information

The following are the rules for sorting:

Sample Request

URL: http://www.example.com:1234/ws/rest/service/v1/cost/cbs/sort

Body:

{

"options":

{

"type":" CBS",

"sortOrder":"desc",

"projectNumber":"proj-3"

}

}

Sample Success Response

{

"data": [],

"message": [],

"status": 200

}

Related Topics

Cost

Get CBS Codes

Create CBS Codes

Update CBS Codes

Get Column Data

Update Column Data



Last Published Tuesday, July 1, 2025