Link a play campaign to an adventure
imagine_link_adventure_to_campaignAdd a play campaign to an adventure's playCampaignIds[], the one stored copy of the link. The campaign's imagineAdventures[] on play_get_campaign lists the adventure from it, which backs the session Adventure tag (imagineAdventureId on play_update_session). The caller must be the campaign's owner or gamemaster (403 otherwise; 404 for an unknown campaign) 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 | |||