Link a play campaign to a world
imagine_link_world_to_campaignLink a play campaign to a world. The link is stored once, in the world's playCampaignIds[]; the campaign's imagineWorldIds on play_get_campaign is read from it. Linking also shares house rules between the world and the campaign (each side's house-rule associations are added to the other). The caller must be the campaign's owner or gamemaster (403 otherwise; 404 for an unknown campaign). By default also imports the campaign's existing characters as world-page character refs (set importCharacters: false to skip). Returns 400 if the link already exists, so call this only when you've confirmed the link isn't already present (or be ready to handle the 400). Caller must have 'edit' access on the world.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Mongo `_id` of the world. | |
| campaignId | Yes | Mongo `_id` of the play campaign to link. Get it from `play_list_my_campaigns` or `play_list_participated_campaigns`. | |
| importCharacters | No | When true (the backend default), play characters already attached to the campaign are imported as world-page character refs on the imagine side. Pass `false` to skip that import and only register the link. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||