Oracle CRM On Demand REST API Developer's Guide > Using the Oracle CRM On Demand REST API > Working with Account Contact Role Resources >

Updating an Account Contact Role


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

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

  • URL: https://<host>/OnDemand/user/Rest/028/Accounts/1QA2-21ATBR/child/AccountContactRoles/1QA2-2CSXTD
  • HTTP Method: PATCH
  • Content-Type: application/vnd.oracle.adf.resource+json
  • Request body:

{
  "AccountContactRoles":
  [
   {
     "Role":"User"
   }
  ]
}

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

  • HTTP Code: 200
  • Content-Type: application/vnd.oracle.adf.resource+json
  • Response body:

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

Oracle CRM On Demand REST API Developer's Guide, Release 34 Revision A Copyright © 2017, Oracle and/or its affiliates. All rights reserved. Legal Notices.