Update Role Cost Values
POST {{baseUrl}}/odata/Roles(4342abec-fcda-42c8-a4ea-1cf716f255fc)/UpdateCostValues
Role cost rates are updated as a list.
effectiveDate - start date of the rate.
One of the passed values must contain effectiveDate = null, this value is valid by default, until the date of the next change.
Request Body
{"costValues"=>[{"effectiveDate"=>nil, "value"=>30, "resourcePoolId"=>"4be0f429-bbf6-45e5-a120-642d2bd31920", "roleId"=>"4342abec-fcda-42c8-a4ea-1cf716f255fc", "id"=>"e7f499f8-e62e-48d1-9750-7de7abfa59b1"}, {"effectiveDate"=>"2022-10-01", "value"=>35, "resourcePoolId"=>"8b65f762-7091-4c12-9bc0-8ac7acec6d08", "roleId"=>"4342abec-fcda-42c8-a4ea-1cf716f255fc", "id"=>"7665c0cc-fcdc-4561-adbd-9edfd094af61"}]}
RESPONSES
status: OK
{"@odata.context":"https://api.timetta.com/odata/$metadata#RoleCostValues","value":[{"effectiveDate":null,"expiryDate":null,"value":30,"resourcePoolId":"4be0f429-bbf6-45e5-a120-642d2bd31920","roleId":"4342abec-fcda-42c8-a4ea-1cf716f255fc","id":"e7f499f8-e62e-48d1-9750-7de7abfa59b1","created":"2022-03-03T11:59:46.4043039+03:00","modified":"2022-03-03T08:59:46.3705148Z","isActive":true},{"effectiveDate":"2022-10-01","expiryDate":null,"value":35,"resourcePoolId":"8b65f762-7091-4c12-9bc0-8ac7acec6d08","roleId":"4342abec-fcda-42c8-a4ea-1cf716f255fc","id":"7665c0cc-fcdc-4561-adbd-9edfd094af61","created":"2022-03-03T11:59:53.7169444+03:00","modified":"2022-03-03T08:59:53.7111842Z","isActive":true}]}