Service Guides for ResourceIQ

Investigate use cases. Find sample scenarios. Learn how your applications can best use ResourceIQ.

Update a Contact

After you have created your contact (POST /{custid}/contact), you can update your contact. A contact is defined by a contact object. The data elements related to a contact can be updated. The update will yield the updated contact object, the contact id, any errors and a success flag.

To Update a Contact (example):

Gather the following information for the request:

  • The customer ID and the API Key.
  • The contact id for the contact that you would like to update.
  • The updated contact object.

Request

PUT  https://sandbox.ebsco.io/rm/rmaccounts/CUSTID/contact/ID
Body Request Parameter

{
  "extensionObject": {
    "status": "active",
    "objectType": "contact",
    "objectDescription": "This is a contact object."
  },
  "contactPoint": {
    "name": "John Frederick",
    "telephone": "1234567890",
    "contactType": "Sales",
    "email": "jFrederick@ebsco.com",
    "description": "This contact point is for a salesperson at EBSCO."
  },
  "organization": {
    "name": "EBSCO Publishing",
    "address": {
      "streetAddress": "1600 Amphitheatre Pkwy",
      "addressLocality": "Mountain View",
      "addressRegion": "CA",
      "addressCountry": "USA",
      "postalCode": "94043"
    }
  },
  "contact": {
    "designation": "string"
  }
}


Response

200 OK

{
  "errors": [],
  "updatedContact": {
    "extensionObject": {
      "id": "065cb541-681c-4dd9-a059-e78b72e31bc4",
      "customerId": "123355",
      "status": "active",
      "objectType": "contact",
      "objectDescription": "This is a contact object."
    },
    "contactPoint": {
      "name": "John Frederick",
      "telephone": "1234567890",
      "contactType": "Sales",
      "email": "jFrederick@ebsco.com",
      "description": "This contact point is for a salesperson at EBSCO.  Updated Contact"
    },
    "organization": {
      "name": "EBSCO Publishing",
      "address": {
        "streetAddress": "1600 Amphitheatre Pkwy",
        "addressLocality": "Mountain View",
        "addressRegion": "CA",
        "addressCountry": "USA",
        "postalCode": "94043"
      }
    },
    "contact": {
      "designation": "sample designation"
    },
    "dateCreated": "2019-01-17T16:32:34.000Z",
    "dateLastUpdated": "2019-01-17T18:52:59.427Z"
  },
  "successful": true
}


For more information on the PUT update contact by id resource, please refer to our interactive or service reference documentation.