Link a play campaign to a world
imagine_link_world_to_campaignLink a play campaign to a world. TWO-WAY — the imagine controller first calls play to register the link there, then writes to its own playCampaignIds[]. 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 | |||