๐ค Join Community Army
Endpoint: POST /api/citizen/armies/{id}/join
Auth Required: โ
Yes (Bearer Token)
Content-Type: application/json
๐ Description
This endpoint allows an authenticated citizen to join a community army.
Joining behavior depends on the army tier:
-
Tier 1 (Open Armies)
โ Citizen is added instantly as a member. -
Tier 2 (Restricted Armies)
โ Citizen must submit additional eligibility details.
โ Membership is granted only after successful validation.
This design ensures both ease of participation and responsible civic engagement.
๐ Authentication
Include the JWT access token in the Authorization header:
๐ Path Parameter
| Parameter | Type | Required | Description |
|---|---|---|---|
id |
UUID | โ | Unique army ID |
๐งพ Request Body
๐น Tier 1 Army (Open)
No request body is required.
```json {}