Copy an Agent

post

/20260430/aiDataPlatforms/{aiDataPlatformId}/workspaces/{workspaceKey}/agents/{agentKey}/actions/copy

Copy an Agent.

Request

Path Parameters
Header Parameters
  • Maximum Length: 1000
    For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.
  • Maximum Length: 255
    Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. The only valid characters for request IDs are letters, numbers, underscore, and dash.
  • Maximum Length: 64
    A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of running that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and removed from the system, then a retry of the original creation request might be rejected.
  • A flag to identify if the recent list should be updated.
    Default Value: false
Body ()
Details for copying the agent
Root Schema : CopyAgentDetails
Type: object
Details to copy the agent to target workspace.
Show Source
Back to Top

Response

Supported Media Types

200 Response

Request accepted. Agent is copied.
Headers
Body ()
Root Schema : Agent
Type: object
An agent is a sequence of nodes and edges defining an end-to-end agentic application. | A diagram can be composed of multiple nodes, each node being a single agent or a multi-agent system, working independently | or collaboratively to accomplish an overall objective.
Show Source
Nested Schema : AgentCardConfigDetail
Type: object
Details of the A2A publish request payload.
Show Source
Nested Schema : AgentDiagram
Type: object
Diagrammatic representation of the agent with all node and edge details.
Show Source
Nested Schema : GuardrailsConfiguration
Type: object
Safety guardrails configuration for an Agent.
Show Source
Nested Schema : SessionConfiguration
Type: object
Session configuration for an Agent.
Show Source
Nested Schema : AgentCardCapabilitiesDetail
Type: object
Capabilities included in publish request.
Show Source
Nested Schema : AgentProvider
Type: object
Service provider information for an agent.
Show Source
Nested Schema : skills
Type: array
List of skills supported by the agent.
Show Source
Nested Schema : AgentCardSkillDetail
Type: object
A single skill in the publish request.
Show Source
Nested Schema : examples
Type: array
Optional example prompts for this skill.
Show Source
Nested Schema : tags
Type: array
Optional tags for categorization/search.
Show Source
Nested Schema : edges
Type: object
Additional Properties Allowed
Show Source
  • AgentEdge
    An edge connecting two nodes in the diagram, with context and metadata.
Mapping of edgeId to edge objects.
Default Value: { }
Nested Schema : guardrailsMap
Type: object
Additional Properties Allowed
Show Source
A hash map with key=guardrails config key, value=guardrails definition. It is used to find the guardrails definition for a guardrails reference by name.
Nested Schema : nodes
Type: object
Additional Properties Allowed
Show Source
Mapping of nodeId to node objects.
Default Value: { }
Nested Schema : toolsMap
Type: object
Additional Properties Allowed
Show Source
  • Tool
    Discriminator: toolType
    A tool is a function that an agent can call. Tools can retrieve data, call external APIs, HTTP endpoints, execute a snippet of code, entire Python scripts, etc. | A tool is stateless, doesn't reason (it just executes), and can be reused across agents.
A hash map with key=tool key, value=tool definition. It is used to find the tool definition for a tool reference, where the tool is marked as a reference.
Nested Schema : AgentEdge
Type: object
An edge connecting two nodes in the diagram, with context and metadata.
Show Source
Nested Schema : edgeHandles
Type: array
Geometry handle coordinates.
Show Source
Nested Schema : edgeProperties
Type: object
Additional Properties Allowed
Show Source
Extensible properties of the edge.
Nested Schema : validationErrors
Type: array
List of validation errors encountered in the diagram.
Show Source
Nested Schema : Point
Type: object
A 2D point for edge handles on diagram elements.
Show Source
Nested Schema : additionalProperties
Type: object
Nested Schema : ValidationError
Type: object
Validation error for a component in agent diagram.
Show Source
Nested Schema : AgentDiagramNode
Type: object
Discriminator: type
A node in a diagram, representing logic, data, or operation.
Show Source
Nested Schema : configuration
Type: object
Additional Properties Allowed
Show Source
Configuration object for this node.
Default Value: { }
Nested Schema : inputs
Type: array
Array of NodeInput objects.
Show Source
Nested Schema : outputs
Type: array
Array of NodeOutput objects.
Show Source
Nested Schema : validationErrors
Type: array
List of validation errors encountered in the diagram.
Show Source
Nested Schema : additionalProperties
Type: object
Default Value: { }
Nested Schema : NodeInput
Type: object
An input slot for a node, including type and requirements.
Show Source
Nested Schema : NodeIo
Type: object
Defines the data type and color for an input or output.
Show Source
Nested Schema : NodeIoColor
Type: object
Text and background color configuration for a node input/output.
Show Source
Nested Schema : NodeOutput
Type: object
An output slot for a node, including type and requirements.
Show Source
Nested Schema : Tool
Type: object
Discriminator: toolType
A tool is a function that an agent can call. Tools can retrieve data, call external APIs, HTTP endpoints, execute a snippet of code, entire Python scripts, etc. | A tool is stateless, doesn't reason (it just executes), and can be reused across agents.
Show Source
Nested Schema : properties
Type: object
Additional Properties Allowed
Show Source
A list of key-value pairs to use for configuring the tool
Nested Schema : additionalProperties
Type: object
Nested Schema : policies
Type: array
List of safety policies configured in this guardrails
Show Source
Nested Schema : SafetyPolicy
Type: object
Discriminator: policyType
Individual safety policy configuration.
Show Source
Nested Schema : SessionRetentionConfiguration
Type: object
Session data retention configuration for an Agent.
Show Source
Nested Schema : variables
Type: object
Additional Properties Allowed
Show Source
Map of session variable name to variable definition.
Default Value: { }
Nested Schema : SessionVariableDetails
Type: object
Session Variable Details.
Show Source

400 Response

Bad Request (invalid query parameters, malformed headers, and so on).
Headers
  • Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error information.
Show Source

401 Response

Unauthorized (missing or expired credentials, and so on).
Headers
  • Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error information.
Show Source

404 Response

Not Found. The requested resource was not found.
Headers
  • Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error information.
Show Source

409 Response

Conflict. Request conflicts with the current state of the resource.
Headers
  • Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error information.
Show Source

412 Response

Precondition Failed (One or more conditions in request failed).
Headers
  • Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error information.
Show Source

429 Response

Too Many Requests. Too many requests sent to the server in a short period.
Headers
  • Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error information.
Show Source

500 Response

Internal Server Error. The server encountered an unexpected condition preventing fulfilment of the request.
Headers
  • Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error information.
Show Source

Default Response

Unknown Error. Error is not recognized by the system.
Headers
  • Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error information.
Show Source
Back to Top