sync_shared_model
Re-sync an accepted model share with the latest source content. Fetches the current source model and overwrites the accepted copy in the target repo with an updated provenance header.
Requires Owner or Editor access to the target project. Supply expected_sha to guard against overwriting concurrent edits.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
request_id | str | Yes | — | UUID of an accepted share request |
expected_sha | str | No | '' | Current Gitea SHA of the target file — supply to prevent overwriting concurrent edits |
Returns
Section titled “Returns”request_id(string)target_project(string)target_model(string)target_path(string)source_commit_sha(string) — source file SHA at sync timetarget_commit_sha(string) — commit SHA written to target reposynced_at(string) — ISO 8601 timestamp
Example
Section titled “Example”Tool Call
Section titled “Tool Call”{ "name": "sync_shared_model", "arguments": { "request_id": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa" }}Response
Section titled “Response”{ "request_id": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa", "target_project": "shared-models", "target_model": "acme_revenue_forecast", "target_path": "model/acme_revenue_forecast.py", "source_commit_sha": "newsha123abc", "target_commit_sha": "targetsha456def", "synced_at": "2026-05-09T14:00:00+00:00"}- Module:
Sharing - Requires authentication via API token or Auth0 JWT.
- Only works on
acceptedrequests; rejected or revoked requests return an error.