Note that if you use a tool such as Postman, requests automatically include the HTTP version. If you enter the HTTP version in the URL, the request is not successful because the HTTP version occurs twice in the URL.
The following list describes the attributes of the version 2 and version 3 request header formats:
Attribute
Required
Description
METHOD
Yes
Method you want to use, such as GET, POST, or DELETE.
serverUrl
Required for most v2 resources
Base URL for all version 2 resources except login and register.
Use a placeholder for serverUrl, and replace the placeholder with the Informatica Intelligent Cloud Services URL returned by the login resource.
For the login and register resources, use the URL listed in the resource.
baseApiUrl
Required for most v3 resources
Base URL for all version 3 resources except login.
Use a placeholder for baseApiUrl, and replace the placeholder with the Informatica Intelligent Cloud Services URL returned by the login resource.
For the login resource, use the URL listed in the resource definition.
URI
Required for most resources
Resource URI.
The URI includes the base URL and the resource name and can also include parameters.
For the login and register resources, use the URL listed in the resource definitions.
HTTP version
Yes
HTTP version that you are using.
Some tools such as Postman automatically include the HTTP version in the header.
Content-Type
Required for POST requests
Format of the request. Use one of the following options:
- application/json. Reads request as JSON.
- application/xml. Reads request as XML. Only applicable to version 2 resources.
Default is json.
Accept
No
Request format that you want to receive. Use one of the following options:
- application/json. Sends response as JSON.
- application/xml. Sends response as XML. Only applicable to version 2 resources.
Default is json.
icSessionId
Required for most v2 resources
Informatica Intelligent Cloud Services session ID. Required for all version 2 resources except login and register.
Use a placeholder for sessionId, and replace the placeholder with the session ID returned by the login resource.
INFA-SESSION-ID
Required for most v3 resources
Informatica Intelligent Cloud Services session ID. Required for all version 3 resources except login.
Use a placeholder for sessionId, and replace the placeholder with the session ID returned by the login resource.
Request body
Use the request body to pass additional attributes for the resource. When you pass attributes in a request body, you pass the attributes as part of an object.
For example, to log in with the login resource, you pass the required username and password attributes in a login object.
Some requests include sub-objects for attributes. Declare the sub-objects before listing the related attributes.
JSON format
When you use the JSON format for version 2 REST API calls, you can optionally define a request object with the @type attribute, as shown in the following examples: