Example of a Response Link for Self, Canonical, Parent, and Child Links
This topic contains an example of a response that includes self, canonical, parent, and child links. For more information about response links, see Oracle CRM On Demand REST API URL Format.
Request:
https://<host>/OnDemand/user/Rest/026/Accounts/1QA2-227Q47/child/Opportunities/1QA2-
227Q49?fields=OpportunityName,SalesStage
Response:
{
"Opportunities": [
{
"OpportunityName": "RestDoNotDelete",
"SalesStage": "Closed/Won",
"links": {
"self": {
"rel": "self",
"href": "/OnDemand/user/Rest/026/Accounts/1QA2-227Q47/child/Opportunities/1QA2-227Q49"
},
"canonical": {
"rel": "canonical",
"href": "/OnDemand/user/Rest/026/Opportunities/1QA2-227Q49"
},
"parent": {
"rel": "parent",
"href": "/OnDemand/user/Rest/026/Accounts/1QA2-227Q47"
},
"Activities": {
"rel": "child",
"href": "/OnDemand/user/Rest/026/Opportunities/1QA2-227Q49/child/Activities"
},
"CustomObjects4": {
"rel": "child",
"href": "/OnDemand/user/Rest/026/Opportunities/1QA2-227Q49/child/CustomObjects4"
},
"Leads": {
"rel": "child",
"href": "/OnDemand/user/Rest/026/Opportunities/1QA2-227Q49/child/Leads"
},
"Opportunities": {
"rel": "child",
"href": "/OnDemand/user/Rest/026/Opportunities/1QA2-227Q49/child/Opportunities"
},
"OpportunityNotes": {
"rel": "child",
"href": "/OnDemand/user/Rest/026/Opportunities/1QA2-227Q49/child/OpportunityNotes"
},
"OpportunityPartners": {
"rel": "child",
"href": "/OnDemand/user/Rest/026/Opportunities/1QA2-227Q49/child/OpportunityPartners"
},
"OpportunityRevenues": {
"rel": "child",
"href": "/OnDemand/user/Rest/026/Opportunities/1QA2-227Q49/child/OpportunityRevenues"
},
"OpportunityTeams": {
"rel": "child",
"href": "/OnDemand/user/Rest/026/Opportunities/1QA2-227Q49/child/OpportunityTeams"
}
}
}
]
}