Create
POST /groups
This operation can change data. Use resources you control.
Request fields
| Field | Location | Type | Required |
|---|---|---|---|
name | body | string | Required |
room | body | front-office | research-lab | task-room | build-studio | break-garden | garden-lounge | Optional |
space_settings | body | SpaceSettings | null | Optional |
world_packs | body | List of office | lake | games | park | commons | null | Optional |
Examples
Use the environment settings from Quickstart. Replace sample resource IDs with your own. The examples show the required request shape.
import { MaxClient } from "@elmax/api";
const max = new MaxClient({
baseURL: process.env.MAX_API_URL,
apiKey: process.env.MAX_API_KEY,
});
const result = await max.api.postGroups({
"body": {
"name": "Support helper"
}
});
console.log(result);import os
from elmax_ai import MaxClient
with MaxClient(base_url=os.environ["MAX_API_URL"], api_key=os.environ["MAX_API_KEY"]) as max:
result = max.api.post_groups(**{'body': {'name': 'Support helper'}})
print(result)