Clone a Lookup

post

/ic/api/integration/v1/lookups/{name}/clone

Clones the lookup with the specified name. The request must contain a JSON file with the new lookup's details attached with the -d option. The JSON file must contain the name attribute.

Request

Path Parameters
Query Parameters
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Back to Top

Response

200 Response

Successful operation

400 Response

Bad request, missing required data

404 Response

Lookup not found

500 Response

Server error
Back to Top

Examples

The following example shows how to clone a lookup by submitting a POST request on the REST resource using cURL. For more information about cURL, see Use cURL. For more information about endpoint URL structure, see Send Requests.

Example: Clone a lookup

This command clones the specified lookup. The request must attach a JSON file containing the new lookup's details with the -d option.

Request:

curl -X POST -H 'Authorization: Bearer access_token' -H "Content-Type:application/json" -d @lookup.json https://design.integration.region.ocp.oraclecloud.com/ic/api/integration/v1/lookups/myLookup/clone?integrationInstance=service-instance

Request Body:

The following example shows the contents of the request body in JSON format. This is the contents of the lookup.json file listed in the cURL command.

{"description":"Cloned lookup","name":"clonedLookup"}
Back to Top