Retrieve a Prompt Template in a Project

get

/ic/api/integration/v1/projects/{projectId}/ai/templates/{id}

Returns details of a specific Prompt Template.

Request

Path Parameters
Query Parameters

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

Successful operation
Body ()
Root Schema : schema
Match All
Show Source
Nested Schema : IdRs
Match All
Show Source
Nested Schema : GenericRestRs
Type: object
Show Source
Nested Schema : IdRs-allOf[1]
Type: object
Show Source
Nested Schema : type
Type: object
Show Source

404 Response

Prompt Template not found

500 Response

Server error
Back to Top

Examples

The following example shows how to retrieve a specific prompt template by submitting a GET 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: Retrieve prompt template ORDER_CREATION_PROMPT

This command retrieves the specified prompt template.

The id is in the form: code%7Cversion. The %7C is the encoded | (vertical line).

curl -X GET -H 'Authorization: Bearer access_token' https://design.integration.region.ocp.oraclecloud.com/ic/api/integration/v1/projects/TEST_PROJECT/ai/templates/ORDER_CREATION_PROMPT%7C01.00.0000?integrationInstance=service-instance
Back to Top