Creating an Account Contact Role

You can use the REST API to create an Account Contact Role resource.

The following details are for a request to create an Account Contact Role resource on the Oracle CRM On Demand Server:

  • URL: https://<host>/OnDemand/user/Rest/028/Accounts/1QA2-21ATBR/child/AccountContactRoles

  • HTTP Method: POST

  • Content-Type: application/vnd.oracle.adf.resource+json

  • Request body:

{
  "AccountContactRoles": 
  [{ 
       "ContactId": "1QA2-21ATC5", 
       "Role":"Unknown" 
  }]
} 

The following are the details for the response to a successful request:

  • HTTP Code: 201

  • Content-Type: application/vnd.oracle.adf.resource+json

  • Response body:

{
  "AccountContactRoles": [
    {
      "Role": "Unknown",
      "ContactId": "1QA2-21ATC5",
      "links": {
        "self": {
         "rel": "self",
         "href": "/OnDemand/user/Rest/028/Accounts/1QA2-21ATBR/child/AccountContactRoles/1QA2-2CRNM2"
        },
        "canonical": {
         "rel": "canonical",
         "href": "/OnDemand/user/Rest/028/Accounts/1QA2-21ATBR/child/AccountContactRoles/1QA2-2CRNM2"
        },
        "parent": {
         "rel": "parent",
         "href": "/OnDemand/user/Rest/028/Accounts/1QA2-21ATBR"
        }
      }
    }
 ]
}