Create an Agent Pattern in a Project

post

/ic/api/integration/v1/projects/{projectId}/ai/patterns/accelerators/archive

Creates a new Agent Pattern under the specified project.

Request

Path Parameters
Query Parameters
Supported Media Types
Request Body - application/json;charset=utf-8 ()
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
Nested Schema : PatternDependencies
Type: object
Show Source
Nested Schema : patternRoles
Type: array
Pattern Roles
Show Source
Nested Schema : integrations
Type: array
Integration id's
Show Source
Nested Schema : Integration
Type: object
Show Source
Nested Schema : PatternDependencyProject
Type: object
Show Source
Nested Schema : PatternRoles
Type: object
Show Source
Nested Schema : connectionList
Type: array
Show Source
Nested Schema : PatternRoleConnection
Type: object
Show Source
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
Nested Schema : PatternDependencies
Type: object
Show Source
Nested Schema : patternRoles
Type: array
Pattern Roles
Show Source
Nested Schema : integrations
Type: array
Integration id's
Show Source
Nested Schema : Integration
Type: object
Show Source
Nested Schema : PatternDependencyProject
Type: object
Show Source
Nested Schema : PatternRoles
Type: object
Show Source
Nested Schema : connectionList
Type: array
Show Source
Nested Schema : PatternRoleConnection
Type: object
Show Source

500 Response

Server error
Back to Top

Examples

The following example shows how to create an Agent Pattern in a project 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: Create an Agent Pattern ORDER_PROCESSING_PATTERN in project TEST_PROJECT

This command consumes JSON data and creates an Agent Pattern under the specified project.
curl -X POST -H 'Authorization: Bearer access_token' -H "Content-Type:application/json" -d @pattern.json https://design.integration.region.ocp.oraclecloud.com/ic/api/integration/v1/projects/TEST_PROJECT/ai/patterns/accelerators/archive?integrationInstance=service-instance

Request Body:

The following example shows the contents of the request body in JSON format. This is the content of the aiagent.json file listed in the cURL command with the -d option.

{
  "patternCode": "ORDER_PROCESSING_PATTERN",
  "patternVersion": "01.00.0000",
  "projectCode":"TEST_PROJECT",
  "id":"21f0a604-b1cf-4ae6-b785-e25f2e833392"
}

Attributes

  • patternCode

    A unique identifier for the Agent Pattern within the project.

  • patternVersion

    The version of the Agent Pattern being created.

  • projectCode

    The code of the project in which the Agent Pattern is created.

  • id

    The unique identifier (UUID) of the Accelerator used to create the Agent Pattern.

Back to Top