Web Services Reference for Oracle Billing Insight > Examples of Web Services > Examples of the Companies Web Service >

Example of Updating a Company's Information


This example shows you how to use the companies Web service to update a company's information.

Operation

Use the following operation to update a company's information:

PUT /companies/{companyId}

Sample URL

The following is a sample URL for this Web service example:

http://myhost.example.com:7017/rs/api/v2/companies/Dutch Home Insurance

Sample XML Input Rules

The following are the XML input rules:

  • Tags in bold are required, and the corresponding fields cannot be updated.
  • If tags are not present, then the corresponding fields are not updated.
  • If tags are present with an empty value, then the corresponding fields are set to empty if a null value is allowed.
Sample XML Input

The following is an example of XML input:

<companyInfo>
<companyId>Dutch Home Insurance</companyId>
<companyName>Dutch Home Insurance Corporation UPDATED</companyName>
<taxId>...</taxId>
<address1>...</address1>
<city>...</city>
<state>...</state>
<country>...</country>
<postalCode>...</postalCode>
</companyInfo>

Sample JSON Input

The following is an example of JSON input:

{
   "companyId": "Dutch Home Insurance",
   "companyName": "Dutch Home Insurance Corporation UPDATED",
   "taxId": "...",
   "address1": "...",
   "city": "...",
   "state": "...",
   "country": "...",
   "postalCode": "..."
}

Response Message

The following is an example of the response message:

Company Update Success

Visit <link>http://myhost.example.com:7017/rs/api/v2/companies/Dutch%20Home%20Insurance</link>

Web Services Reference for Oracle Billing Insight Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Legal Notices.