Skip to content

docs: add example for adding a vessel to a formation via API#295

Open
Hauke Löffler (hloeffler) wants to merge 3 commits into
mainfrom
docs/add-vessel-to-formation-via-api
Open

docs: add example for adding a vessel to a formation via API#295
Hauke Löffler (hloeffler) wants to merge 3 commits into
mainfrom
docs/add-vessel-to-formation-via-api

Conversation

@hloeffler
Copy link
Copy Markdown
Contributor

Summary

Adds a new section to the API examples page documenting how to add a vessel
to an existing formation via a PATCH request.

Changes

  • New section "Adding a Vessel to a Formation" in src/multiplayer-servers/api/examples.md
  • Minimal example (name + region) showing the vessel inherits the formation template
  • Override example for customizing container settings per vessel
  • Warning box clarifying that ownerReferences on standalone vessels is not the correct approach

Copilot AI review requested due to automatic review settings June 3, 2026 11:32
@hloeffler Hauke Löffler (hloeffler) requested a review from a team as a code owner June 3, 2026 11:32
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new REST API example to the Multiplayer Servers documentation explaining how to append a Vessel to an existing Formation using a JSON Patch request, including guidance on per-vessel overrides and a warning about improper ownerReferences usage.

Changes:

  • Documented PATCHing a Formation to add a new Vessel entry to the Formation’s vessel list.
  • Added a minimal example (name + region) and an example using per-vessel container overrides.
  • Added a warning admonition about why creating a standalone Vessel with ownerReferences is not the correct approach.

Comment thread src/multiplayer-servers/api/examples.md Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 3, 2026 11:42
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread src/multiplayer-servers/api/examples.md
Comment thread src/multiplayer-servers/api/examples.md Outdated
- Capitalize Vessel and Formation when referring to resource kinds
- Use consistent placeholder <your-image-object-name> across the page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants