Updating Oracle CRM On Demand Child Resources
You can update Oracle CRM On Demand child resources by sending an HTTP PATCH request to the resource's URL.
The following details are for a request to update a child Activities resource on the Oracle CRM On Demand Server:
URL: https://<host>/OnDemand/user/Rest/latest/Accounts/1QA2-22P076/child/Activities/1QA2-22U11G
HTTP Method: PATCH
Content-Type: application/vnd.oracle.adf.resource+json
Request body:
{
"Activities": [
{
"Subject": "New Task Subject"
}
]
The following are the details for the response to a successful request:
HTTP Code: 200
Content-Type: application/vnd.oracle.adf.resource+json
Location: https://<host>/OnDemand/user/Rest/latest/Accounts/1QA2-22P076/child/Activities/1QA2-22U11G
Response body:
{
"Activities": [
{
"Subject": "New Task Subject",
"links": {
"self": {
"rel": "self",
"href": "/OnDemand/user/Rest/latest/Accounts/1QA2-22P076/child/Activities/1QA2-22U11G"
},
"canonical": {
"rel": "canonical",
"href": "/OnDemand/user/Rest/latest/Activities/1QA2-22U11G"
},
"parent": {
"rel": "parent",
"href": "/OnDemand/user/Rest/latest/Accounts/1QA2-22P076"
},
"CustomObjects15": {
"rel": "child",
"href": "/OnDemand/user/Rest/latest/Activities/1QA2-22U11G/child/CustomObjects15"
}
}
}
]
}