Detach a companion from a character
vault_detach_companionRemove a companion row from a Main character's sheet by the ROW's _id (from the companions[] array — not the buddy's own character id). Detaching an 'owned' row leaves the referenced character in the user's vault untouched; detaching a 'link' row discards the locally-tracked overlay counters (the source character is untouched either way). Response is { companions, updatedAt }; ADOPT the returned updatedAt as the Main character's fresh stamp.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Mongo `_id` of the Main character carrying the companion row. | |
| companionId | Yes | The companion ROW's `_id` from the Main character's `companions[]` array — NOT the buddy character's own `_id`. Read it off vault_get_character. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||