Accounts API
Authentication
Endpoint |
Method |
Permission |
Description |
|---|---|---|---|
|
POST |
Any |
Obtain JWT access + refresh tokens. Body: |
|
POST |
Any |
Refresh access token. Body: |
|
GET |
Authenticated |
Get current user profile with role, zone, team memberships |
Users
Endpoint |
Method |
Permission |
Description |
|---|---|---|---|
|
GET |
central_ops |
List users. Filters: |
|
POST |
central_ops |
Create user. Body: |
|
GET |
central_ops, self |
Get user detail with team memberships |
|
PATCH |
central_ops, self (limited) |
Update user. Self can update: phone, email. Central Ops can update: role, zone, is_available |
Teams
Endpoint |
Method |
Permission |
Description |
|---|---|---|---|
|
GET |
central_ops, field_team |
List teams. Filters: |
|
POST |
central_ops |
Create team. Body: |
|
GET |
central_ops, field_team (own) |
Get team detail with members |
|
PATCH |
central_ops |
Update team details |
|
DELETE |
central_ops |
Deactivate team (soft delete) |
|
GET |
central_ops, field_team (own) |
List team members |
|
POST |
central_ops |
Add member. Body: |
|
DELETE |
central_ops |
Remove member from team |
Zones
Endpoint |
Method |
Permission |
Description |
|---|---|---|---|
|
GET |
Authenticated |
List active zones. Filters: |
|
POST |
central_ops |
Create zone. Body: |
|
PATCH |
central_ops |
Update zone (name, state, is_active) |