Accept a third party's file for a piece
accept_contributionAccepts a file a third party sent through a guest upload link, so the piece can use it. The first acceptance is the one that counts (repeating it changes nothing: already_accepted) and a file the owner uploaded needs none (not_a_contribution). permission_scope is piece (this piece only, the default) or author (the creator's pieces, only when the link asked for it); a guest who withdrew consent cannot be accepted. Only the piece's owner. Requires write. $0.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>",
"asset_id": "<asset_id>"
},
"name": "accept_contribution"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset_id | Yes | The `assetId` of the contributed file. | |
| project_id | Yes | ||
| permission_scope | No | This piece only (default), or the creator's pieces when the guest consented to that. |