Create Group
Allows a user to create a new group (clan) to compete with friends.
Endpoint
Section titled “Endpoint”POST
/group/v1/createRequest Body
Section titled “Request Body”curl -X POST https://api.juspredict.com/group/v1/create \-H 'Authorization: Bearer YOUR_TOKEN' \-H 'Content-Type: application/json' \-d '{"group_name": "The High Rollers","alias": "ROLLERS","user_id": "user-uuid","join": true,"mode": 2}'{"group_name": "The High Rollers","alias": "ROLLERS","user_id": "user-uuid","join": true,"mode": 2}Constraints
Section titled “Constraints”| Field | Requirement |
|---|---|
group_name | 3 to 50 characters. |
alias | 3 to 15 characters. |
mode | 1: PUBLIC, 2: PRIVATE. |
Response Body
Section titled “Response Body”{"status": { "type": "SUCCESS" },"group_id": "group-uuid"}{"status": {"type": "ERROR","details": [ { "code": "401", "message": "Unauthorized access token." }]}}Response Fields
Section titled “Response Fields”| Field | Type | Description |
|---|---|---|
status | Status | Operation status. |