Sort Cost Sheet

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

Purpose:

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

Notes:

Input:

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, then 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 for one project at a time, only.

Type

This is an optional parameter, and if the parameter is not present, then 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.

Output:

JSON object containing 'status', 'data', 'message'

The message will be present if status is not 200; otherwise, it will be "success".

Additional Information

The following are the rules for sorting:

Sample

{

"options":

{

"type":" CBS",

"sortOrder":"desc",

"projectNumber":"proj-3"

}

}

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 Friday, December 13, 2024