Link a play campaign to an adventure
imagine_link_adventure_to_campaignAdd a play campaign to an adventure's playCampaignIds[]. Two-way: imagine also writes an { id, name } entry to the play campaign's imagineAdventures[] mirror, which backs the session Adventure tag (imagineAdventureId on play_update_session). The caller must be the campaign's owner or gamemaster on play (the link fails otherwise) and have 'edit' access on the adventure. The controller returns 400 if the link already exists; call this only when you've confirmed the link isn't already present (or be ready to handle the 400). Use play_list_my_campaigns to locate the campaign id first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Mongo `_id` of the adventure. | |
| campaignId | Yes | Mongo `_id` of the play campaign to link. Get it from `play_list_my_campaigns` or `play_list_participated_campaigns`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||