sync_shared_model
Re-sync an accepted model share with the latest source content. Caller must have Owner or Editor access to the target project in the current tenant. If the target file already exists, expected_sha (the current Gitea blob SHA) is required to confirm the overwrite; omitting it returns a conflict error with the current SHA and a recovery hint. Returns: request_id, target_project, target_model, target_path, source_commit_sha, target_commit_sha, synced_at.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
request_id | Annotated[str, Field(description='UUID of the model share request.')] | Yes | — | |
expected_sha | Annotated[str, Field(description='Current Gitea blob SHA of the target file. Required when the target already exists — omitting it returns a conflict error with the current SHA and a recovery hint.')] | No | '' |
Returns
Section titled “Returns”Returns a structured object. Top-level fields:
request_id(string)target_project(string)target_model(string)target_path(string)source_commit_sha(string)target_commit_sha(string)synced_at(string)
See the response example below for the full payload shape.
Example
Section titled “Example”Tool Call
Section titled “Tool Call”{ "name": "sync_shared_model", "arguments": { "request_id": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa", "expected_sha": "0123456789abcdef0123456789abcdef01234567" }}Response
Section titled “Response”{ "request_id": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa", "target_project": "forecasts", "target_model": "acme_revenue_forecast", "target_path": "model/acme_revenue_forecast.py", "source_commit_sha": "abc1234def5678901234567890abcdef12345678", "target_commit_sha": "0123456789abcdef0123456789abcdef01234567", "synced_at": "2026-04-28T10:00:00+00:00"}- Module:
Sharing - Requires authentication via API token or Auth0 JWT.