Create and Update Resources in the Master Rate Sheet
POST /ws/rest/service/v2/rate/sheet/resources
Purpose:
Create or update Resources in the Master Rate Sheet.
This POST service includes the creation and updating of Resources. Resources cannot be removed once they are created under the Master Rate Sheet.
There is no PUT or delete API for this.
Prerequisites:
- rateType and costType are optional fields in the ratesBreakdown Array. If they are not entered, Standard and Direct will be the default breakdown for the Rates.
- There should be a unique combination of Rate Type and Cost Type in the request payload. If there is more than one entry with the same combination and different Rates, you should receive an error message.
- The user must have the necessary permissions to run this service.
Note: All the allowed values for API parameters are case-sensitive.
Input:
{
"options": {
"source": "Primavera Cloud"
},
"data": [
{
"resourceCode": "Child1Rate4",
"resourceName": "Child1Rate4",
"workspaceCode": "NON_PROD3",
"parentResourceCode": "Parent",
"resourceType": "Labor",
"resourceCurrency": "USD",
"resourceStatus": "Active",
"unitsPerTime": 10,
"rates": [
{
"resourceEffectiveDate": "2020-02-03",
"ratesBreakdown": [
{
"resourceStandardRate": 100,
"costType": "Food",
"rateType": "Direct"
},
{
"resourceStandardRate": 100
}
]
},
{
"resourceEffectiveDate": "2020-02-05",
"ratesBreakdown" : [
{
"resourceStandardRate": 50,
"costType" : "Food",
"rateType" : "Direct"
},
{
"resourceStandardRate": 100,
"costType" : "Standard",
"rateType" : "Indirect"
}
]
}
]
}
]
}
Output:
{
"data": [
{
"resourceStatus": "Active",
"resourceCurrency": "USD",
"resourceCode": "Child1Rate4",
"workspaceCode": "NON_PROD3",
"unitsPerTime":10,
"rates": [
{
"ratesBreakdown": [
{
"rateType": "Direct",
"costType": "Food",
"id": 920,
"resourceStandardRate": 100.0
},
{
"rateType": "Direct",
"costType": "Standard",
"id": 921,
"resourceStandardRate": 100.0
}
],
"resourceEffectiveDate": "2020-02-03",
"id": 913
},
{
"ratesBreakdown": [
{
"rateType": "Direct",
"costType": "Food",
"id": 922,
"resourceStandardRate": 50.0
},
{
"rateType": "Indirect",
"costType": "Standard",
"id": 923,
"resourceStandardRate": 100.0
}
],
"resourceEffectiveDate": "2020-02-05",
"id": 914
}
],
"resourceName": "Child1Rate4",
"id": 118,
"parentResourceCode": "Parent",
"resourceType": "Labor"
}
],
"message": [
"success"
],
"status": 200,
"rest_audit_id": 1234
}
Error Response:
{
"data": [],
"message": [
"The API request is missing the required information: [resourceCode]."
],
"status": 12400,
"rest_audit_id": 1396
}
Related Topics
Create and Update Roles 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