Composing requests in configuration APIs


Configuration APIs use HTTPS-encoded requests to the system to configure features, such as Watchpoints and custom fields.

Every request must have the following format:

https://<SystemHost>/rest/configurationapi/<resourceapi>/<APIVersionNumber>/<resource>/<resourceIdentifier>?<parameters>
  • <SystemHost> is the IP address or host name of the 

    The macro unmigrated-inline-wiki-markup from Confluence is no longer available.

    device that you want to configure.
  • <resourceapi> is the specific configuration API that you are accessing. For example, if you are accessing the Custom field configuration API, replace <resourceapi> with <customfieldapi>.
  • <APIVersionNumber> is the version of the API that you are using (for example, 1.0).
  • <resource> is the resource that you are accessing via the API. For example, if you are editing a custom field with a PUT command, the resource is customfield.
  • <resourceIdentifier> is the identification number of the resource that you are accessing. For example, if you are accessing a given custom field, <resourceIdentifier> is the custom field's identification number (custom field ID). If you are composing a request that accesses multiple resources (all custom fields, for example), you do not need to specify the resource identifier.
  • <parameters> is one or multiple key-value pairs.

Note

Key-value pairs must be separated by ampersands (&) and the elements in a key-value pair must be linked with equal signs (=).

Recommendation

At any one time, you can perform a maximum of five transactions on a given 

The macro unmigrated-inline-wiki-markup from Confluence is no longer available.

device. However, a single transaction can have an unlimited number of operations.

For a stateful operation, you must also supply a transaction identifier (tid). A transaction identifier is returned in the response to a successful request that you make to initiate a transaction on the system and must be used in each subsequent operation in the transaction.

Sample request

https://10.0.0.1/rest/configurationAPI/customfieldapi/1.1/customfield/123?usr=jdoe&pwd=pa55w0rd!&tid=4563

Related topics

Transaction-API
Watchpoint-configuration-API
Custom-field-configuration-API

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*