cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP CCtr RESTful PUT

aldets
Participant
0 Kudos
184

Greetings,

I have a question about the behavior for RESTful PUT function with Restful Task Interface (RTI).

Thing is, that every time a handled tasks subject gets an update with PUT, then everything else is deleted and left blank. Ie. the "To" address, Body etc are updated to "null" values. We are only updating the Subject value. Is this intentional? Do we need to update everything else also?

Kind Regards,

Alder Tsvetkov

Accepted Solutions (1)

Accepted Solutions (1)

former_member158363
Active Contributor
0 Kudos

Hi Alder,

I think the only way to get PATCH method there is through Customer Influence. Which for OnPrem CCtr means FP17 as earliest, which means ETA Q2/2021, I assume. Technically, hotfix can bring this too but I don't think this would happen.

Restful interfaces documentation could be improved, I agree. I miss version specific comments - for instance, RMI methods /userStatuses or /settings or /contactSummaries were introduced in FP15. But unlike in rest of documentation, this is not indicated here, you have to go to release notes to find out... So I have spent 1 hour scratching my head with FP14 before I figured this out... :-).

Regards,

Dawood

Answers (1)

Answers (1)

former_member158363
Active Contributor
0 Kudos

Hi Alder,

I think you have to "update" all fields with PUT method - so you should precede the PUT call with GET call to get actual image of your task and change the Subject field only.

Generally, to update single or only several fields of resource with many fields, PATCH method should be used. But I am afraid PATCH is not implemented in SAP CCtr's restful interfaces.

Regards,

Dawood

0 Kudos

Hi and thanks for the fast reply.

Yes, that's what I thought. I know PATCH method should be used, but I believe it is not supported yet. Also the documentation doesn't refer to clause that everything should be given along. Such clause on the other hand is with RCI manual.

Kind regards,

Alder