Clarity

 View Only

 Problem when Editing Allocation from Staff in an Investment using REST API

Omar TAHRI's profile image
Omar TAHRI posted Apr 17, 2025 04:19 AM

Hi all, 

i'm trying to edit allocationcurve from staff in a project using rest api with  a simple process, however  the expected result in the MUX is not correct

i'm trying to send 288000 s ( 10 manday), however i get 261 in the MUX 

Here is a part of the script:

<core:set var="REST_URL">/projects/6064011/teams/6659379</core:set>
 
<core:set escapeText="false" var="JSON_DATA">
{
"_internalId": 6659379,
"allocationCurve": {
"isFiscal": false,
"curveType": "value",
"dataType": "numeric",
"_type": "tsv",
"segmentList": {
  "defaultValue": 0,
  "segments": [ 
 
{
  "start": "2025-01-01T00:00:00",
  "finish":"2025-12-31T00:00:00",
  "value": 288000
}
 
  ]
}
  } 
 
}
</core:set>

 

do you have any idea to resolve this problem ? 

thank you