Update adapter configuration

Updates the specified adapter, including name, description, and configuration.

This topic includes the following sections:

Request

HTTP method: PUT

Request URL: https://<hostname>:<port>/baocdp/rest/adapter/<name>

Header: See HTTP request and response headers for header information, such as required authentication token.

Request parameters

ParameterTypeRequiredDescriptionValuesDefault value

name

String

Yes

Name of the adapter to update

You can retrieve a list of adapter names using Get all adapters

User-provided value

Existing user-defined value

NA

Request body properties

PropertyTypeRequiredDescriptionValuesDefault value

name

StringYes

New adapter name

User-provided valueNA

description

StringNo

New adapter description

User-provided valueNA
adapterTypeStringYesAdapter typeUser-provided valueNA
versionStringYesAdapter type versionUser-provided valueNA
revisionStringYesAdapter type revisionUser-provided valueNA

configuration

StringNo

New configuration details

If using Autopilot-AD-Utilities:HTTP:PUT process, wrap the configuration in the CDATA tag.

Example:

{
  "name": "AR_Tenantnew",
  "description":"Remedy Adapter for new Tenant",
  "adapterType": "ro-adapter-remedy-actor",
  "version":"20.19.01.00",
  "revision": "1",
"configuration":"<![CDATA[<config>.....</config>]]>",
"configurationDataType":"XML"
}
User-provided valueNA
configurationDataTypeStringNoAdapter configuration details (XML string)XMLXML

Example request JSON

{
    "name": "WebServiceAdapterNew",
    "description":"New adapter configuration",
    "adapterType": "ro-adapter-ws",
    "version":"20.16.02.00",
    "revision": "1",
    "configuration":"<config><clear-asynchronous-cache>true</clear-asynchronous-cache><delay>30</delay></config>",
    "configurationDataType":"xml"
}

Response

If successful, this method updates the specified adapter's configuration.

Response body properties

PropertyDescription
adapterIdSystem-generated ID for the updated adapter

status

Status of the request
messageMessage associated with the request status

Example response JSON

{
  "adapterId": "AdapterConfiguration1466676891545-17392293",
  "status": "Success",
  "message": "Requested adapter successfully updated."
}

Status codes and messages

For more details about HTTP response codes, see HTTP response codes.

HTTP codeMessageDescription
200OKRequest succeeded
400 

Bad request

An error occurred while updating adapter.

The adapter name might not have been specified.

401 Unauthorized
405 Method not allowed

Related topics

HTTP request and response headers

Format of API examples

Add and configure adapter

Upgrade adapter

Was this page helpful? Yes No Submitting... Thank you

Comments