Re-coordinate the running environment¶
Re-register and activate bindings for a specified run provider configuration for an agent version. Before calling, please confirm that the agent version, provider, and configuration file all exist, and that the caller has update permissions for the agent.
POST https://api.moi.matrixorigin.cn/v5/workspaces/{workspace_id}/agents/{agent_id}/versions/{version}/runtime-bindings/{provider}/{profile}/reconcile
Preparation before calling¶
First confirm that the agent version, running provider and configuration file all exist. Prepare a personal access token with access to the target workspace, target workspace ID, agent ID, version number, provider and profile ID.
The example below uses:
$AI_STUDIO_API_KEY: The actual personal access token, passed through theX-API-KeyHeader.$WORKSPACE_ID: Target workspace ID, passed throughX-Workspace-IDHeader.$AGENT_ID: Agent ID.$VERSION: The agent version to coordinate.$PROVIDER: Running provider ID.$PROFILE: Profile ID of the running provider.
The request body of this interface must be empty.
Request example¶
curl -X POST "https://api.moi.matrixorigin.cn/v5/workspaces/$WORKSPACE_ID/agents/$AGENT_ID/versions/$VERSION/runtime-bindings/$PROVIDER/$PROFILE/reconcile" \
-H "X-API-Key: $AI_STUDIO_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Path parameters¶
Parameters |
Type |
Is it required |
Description |
|---|---|---|---|
|
string |
Yes |
The current workspace ID. |
|
string |
Yes |
Agent ID. |
|
string |
Yes |
Agent version to reconcile. |
|
string |
Yes |
Running provider ID. |
|
string |
Yes |
The profile ID of the running provider. |
Successful response¶
When successful, 200 is returned. data in the unified response is bound to the current running environment. Receiving 200 indicates that this coordination request has been successfully processed; please use the returned binding status to determine whether it has been activated.
{
"code": 0,
"data": {
"workspace_id": "ws_01",
"agent_id": "agent_01",
"agent_version": "1",
"provider": "matrixone",
"profile": "default",
"provider_binding_id": "pb_01",
"provider_binding_name": "default-binding",
"provider_binding_hash": "sha256:0123456789abcdef",
"status": "active",
"registered_at": "2026-01-02T15:04:05Z",
"updated_at": "2026-01-02T15:04:05Z"
}
}
The response fields are as follows.
Field |
Type |
Description |
|---|---|---|
|
integer |
|
|
string |
The workspace, agent and agent version to which the binding belongs. |
|
string |
The workspace, agent and agent version to which the binding belongs. |
|
string |
The workspace, agent and agent version to which the binding belongs. |
|
string |
Run provider and configuration file. |
|
string |
Run provider and configuration file. |
|
string |
Binding status, may be |
|
string |
Failure reason returned only when status is |
|
string |
Run provider side binding ID, name and summary. |
|
string |
Run provider side binding ID, name and summary. |
|
string |
Run provider side binding ID, name and summary. |
|
string |
Creation and last update times, using RFC 3339 format. |
|
string |
Creation and last update times, using RFC 3339 format. |
Error response¶
{
"code": 2,
"message": "<错误信息>"
}
Common HTTP errors¶
HTTP status code |
error code |
Common causes |
Recommended actions |
|---|---|---|---|
|
|
The path parameter is invalid, the request body is not empty, the version is deactivated, or the provider is not a type supported by the coordination interface. |
Use valid path parameters and remove request body; check version status and running provider. |
|
|
Lack of valid identity credentials. |
Check API Key. |
|
|
The current caller does not have permission to update the agent. |
Check workspace and agent authorizations. |
|
|
Agent version or runtime provider configuration does not exist. |
Check identifiers in paths. |
|
|
Version service, operation record service or authorization dependency are temporarily unavailable. |
Try again later. |
Follow-up operations¶
After coordination is completed, use the same agent identifier to Query agent details or check whether the running environment binding has been restored to the expected state.