Create and Update Roles in the Master Rate Sheet

POST /ws/rest/service/v2/rate/sheet/roles

Purpose:

Create or update Roles in the Master Rate Sheet.

This POST service includes the creation and updating of Roles. Roles created under the Master Rate Sheet cannot be removed.

There is no PUT or delete API for this.

Prerequisites:

The user must have the necessary permissions to run this service.

Input:

{

"options":{

"source": "Primavera Cloud"

},

"data":[

{

"roleCode":"Manager",

"roleName": "Manager",

"workspaceCode": "Workspace1",

"unitsPerTime":150,

"roleCurrency": "USD",

"roleStatus":"Active",

"rates": [

{

"roleEffectiveDate": "2020-02-01",

"ratesBreakdown" : [

{

"roleStandardRate": 100 ,

"costType":"Food",

"rateType":"Direct"

},

{

"roleStandardRate": 100

}

]

},

{

"roleEffectiveDate": "2018-02-01",

"ratesBreakdown" : [

{

"roleStandardRate": 100 ,

"costType":"Food",

"rateType":"Direct"

},

{

"roleStandardRate": 100

}

]

}

]

}

]

}

Output:

{

"data": [

{

"roleCurrency": "USD",

"unitsPerTime": 150,

"roleCode": "Manager",

"workspaceCode": "Workspace1",

"rates": [

{

"ratesBreakdown": [

{

"roleStandardRate": 100.0,

"rateType": "Direct",

"costType": "Food",

"id": 1568

},

{

"roleStandardRate": 100.0,

"rateType": "Direct",

"costType": "Standard",

"id": 1569

}

],

"id": 1247,

"roleEffectiveDate": "2020-02-01"

},

{

"ratesBreakdown": [

{

"roleStandardRate": 100.0,

"rateType": "Direct",

"costType": "Food",

"id": 1570

},

{

"roleStandardRate": 100.0,

"rateType": "Direct",

"costType": "Standard",

"id": 1571

}

],

"id": 1248,

"roleEffectiveDate": "2018-02-01"

}

],

"roleName": "Manager",

"id": 92,

"roleStatus": "Active"

}

],

"message": [

"success"

],

"status": 200,

"rest_audit_id": 2242

}

Error Response:

{

"data": [],

"message": [

"The API request contains empty value for: [roleCode]."

],

"status": 12422,

"rest_audit_id": 1395

}

Related Topics

Master Rate Sheet

Create and Update Resources in the Master Rate Sheet

Get Resources from the Master Rate Sheet

Get Roles from the Master Rate Sheet



Last Published Tuesday, July 1, 2025