Skip to main content

Hi, I am trying to generate the shifts using the PSO REST API. I am posting the same payload where the workbench does (i extracted it from Audits) but it doesnt seem to work, it gets submitted but doesnt create any shifts. 

 

posting to this endpoint - https://elex-pso-{{env}}.ifs.cloud/IFSSchedulingRESTfulGateway/api/v1/scheduling/data?dataType=MODELLING&waitForCompletion=true&childAccountId=cust

Anything that i am missing?

 

<DsModelling xmlns="http://360Scheduling.com/Schema/DsModelling.xsd">
<RAM_Data_Update>
<object_type_id>RAM_Rota</object_type_id>
<object_pk_name1>id</object_pk_name1>
<object_pk1>80de9cf5042945838531d1ff4811861e</object_pk1>
<column_name>modified</column_name>
<column_value>true</column_value>
<delete_row>false</delete_row>
</RAM_Data_Update>
<RAM_Rota_Alteration>
<ram_rota_id>80de9cf5042945838531d1ff4811861e</ram_rota_id>
<id>158</id>
<ram_resource_id>158</ram_resource_id>
<start_datetime>2023-10-22T22:00:00+00:00</start_datetime>
<end_datetime>2023-11-22T23:00:00+00:00</end_datetime>
</RAM_Rota_Alteration>
<RAM_Rota_Item>
<ram_rota_id>80de9cf5042945838531d1ff4811861e</ram_rota_id>
<id>9d12421249814e29edf4e469436e8265</id>
<ram_resource_id>158</ram_resource_id>
<start_datetime>2023-10-28T06:00:00+00:00</start_datetime>
<end_datetime>2023-10-28T14:00:00+00:00</end_datetime>
<ram_shift_category_id>STW</ram_shift_category_id>
<overtime_period>PT10M</overtime_period>
<ram_shift_template_id>40</ram_shift_template_id>
<split_allowed>true</split_allowed>
<description>Saturdays shift</description>
</RAM_Rota_Item>
<RAM_Rota_Membership_Period>
<ram_rota_id>80de9cf5042945838531d1ff4811861e</ram_rota_id>
<id>02ddd50c2ee74128e8b782486e7d5179</id>
<ram_resource_id>158</ram_resource_id>
<start_datetime>2023-10-17T18:30:00+00:00</start_datetime>
<end_datetime>2023-12-30T18:30:00+00:00</end_datetime>
</RAM_Rota_Membership_Period>
<RAM_Update>
<organisation_id>2</organisation_id>
<dataset_id>DS_DEV</dataset_id>
<id>179559</id>
<user_id>POSTMAN</user_id>
<ram_update_type_id>CHANGE</ram_update_type_id>
<is_master_data>false</is_master_data>
<requesting_app_type_id>PSW</requesting_app_type_id>
<requesting_app_instance_id>10.0.0.5</requesting_app_instance_id>
</RAM_Update>
</DsModelling>

 

I’m not sure whether SHIFT_PLANNER is the correct data type. Have you tried that instead of MODELLING?


@Sajith Anushan Tried with SHIFT_PLANNER, and also without passing data type. same issue.


What are you expecting to see when you get this xml into the system?  Where are you looking for the update?


Hi Carl - Jevin had raised a SNOW ticket couple of days ago for this. I did some testing and sent the required alterations and steps to follow. Requirement was to create shifts in Resource Planner using API.


Reply