(Preview) Sync bundle artifacts and descriptors
post
/20260430/aiDataPlatforms/{aiDataPlatformId}/workspaces/{workspaceKey}/bundles/actions/sync
(Preview) Synchronizes the code, descriptors, and mapping in the bundle by reconciling the contents with the resource origins.
Returns an async job key for tracking sync progress.
This operation is intended for cases where the bundle should be refreshed to reflect
newer source changes while preserving the bundle structure and identity.
Sync uses the bundle's recorded origin metadata to rebuild the bundle from the source
jobs and agent flows that were captured when the bundle was created. The source metadata
is stored in `.aidp/resource_origins.yaml` and must match the requested AIDP/Data Lake and
workspace. The operation refreshes source-controlled bundle content while preserving the
bundle identity and runtime metadata.
During sync, the service stages a refreshed bundle snapshot under the bundle `.aidp`
directory, compares existing and staged descriptors, preserves existing variable aliases
and override references where possible, merges existing manifest default variables, and
then promotes the refreshed source-controlled files back into the bundle root.
Sync preserves environment-specific and deployment runtime files such as
`.aidp/overrides.yaml` and `.aidp/aidp.state.json`. These files are not replaced by the
refreshed source snapshot.
This operation is asynchronous and returns async operation headers when accepted.
Typical use cases:
- refresh bundle contents after upstream workspace resources have changed
- reconcile descriptor or artifact content with current resource origins
- preserve local bundle overrides while pulling in source resource updates
- keep a Git-backed bundle current before committing or promoting it
Request notes:
- `path` identifies the bundle root folder in the workspace volume
- the bundle must contain a valid `aidp_workbench.yaml`
- the bundle must contain `.aidp/resource_origins.yaml`
- origin metadata must refer to the same AIDP/Data Lake and workspace as the request
Request
Path Parameters
-
aiDataPlatformId(required): string
Minimum Length:
1Maximum Length:500The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the AI Data Platform (Data Lake) instance. -
workspaceKey(required): string
Minimum Length:
1Maximum Length:200The key of the Workspace
Header Parameters
-
opc-request-id: string
Maximum Length:
255Unique 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. -
opc-retry-token: string
Maximum Length:
64A 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.
Request payload for bundle sync.
Root Schema : SyncBundleDetails
Type:
objectRequest payload for bundle sync.
Show Source
-
path(required):
string
Minimum Length:
10Maximum Length:1024Pattern:^/Workspace(?:/(?!\.{1,2}(?:/|$))[^/\\\r\n]+)*/?$Target folder for the new bundle.
Response
Supported Media Types
- application/json
202 Response
Accepted. Sync operation initiated.
Headers
-
aidp-async-operation-key: string
The key of the asynchronous operations associated with an AI Data Platform instance. Use GetAsyncOperation with this key to track the status of the request.
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
400 Response
Bad Request (invalid query parameters, malformed headers, and so on).
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
401 Response
Unauthorized (missing or expired credentials, and so on).
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
404 Response
Not Found. The requested resource was not found.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
409 Response
Conflict. Request conflicts with the current state of the resource.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
429 Response
Too Many Requests. Too many requests sent to the server in a short period.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
500 Response
Internal Server Error. The server encountered an unexpected condition preventing fulfilment of the request.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
Default Response
Unknown Error. Error is not recognized by the system.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.