Skip to content

withdraw_model_share

Withdraw a model share: action=‘reject’ a pending request, or action=‘revoke’ an accepted share. action=‘reject’: caller must have Owner or Editor access to the suggested target model in the acting workspace (your current one, or workspace_id if passed — must be the request’s target tenant; OAuth/JWT sessions only). If the target model does not yet exist, workspace Owner role is also accepted.

NameTypeRequiredDefaultDescription
actionAnnotated[Literal['reject', 'revoke'], Field(description="Which withdrawal to perform: 'reject' a pending request, or 'revoke' an accepted share.")]Yes
request_idAnnotated[str, Field(description='UUID of the model share request.')]Yes
workspace_id`Annotated[strNone, Field(description=“Optional UUID of a workspace other than your current one to act from. For action=‘reject’, must be the request’s target tenant. For action=‘revoke’, whichever of your workspaces is the request’s source or target. Omit to use your current workspace. Cross-workspace targeting requires an active membership in that workspace and is only available to OAuth/JWT sessions — API tokens stay scoped to their issuing workspace. The response echoes workspace_id so you can reuse it on follow-up calls.”)]`NoNone

Returns a structured object. Top-level fields:

  • request_id (string)
  • status (string)
  • updated_at (string)

See the response example below for the full payload shape.

{
"name": "withdraw_model_share",
"arguments": {
"action": "reject",
"request_id": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"
}
}
{
"request_id": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
"status": "rejected",
"updated_at": "2026-04-28T10:00:00+00:00"
}
  • Module: Sharing
  • Requires authentication via API token or Auth0 JWT.