Groups
Create group
Create a group within a program. You provide the group ID — use any identifier from your system.
AuthorizationBearer <token>
API key passed as a Bearer token. Contact your Flip account manager to obtain credentials.
In: header
Path Parameters
programIdstring
idstring
Your identifier for this group. Must contain only letters, numbers, hyphens, and underscores.
Match
^[\w-]+$Length
1 <= lengthnamestring
Response Body
curl -X POST "https://api-utility.flip.energy/v1/programs/string/groups" \ -H "Content-Type: application/json" \ -d '{ "id": "zone-a", "name": "Zone A" }'{
"id": "my-group",
"name": "My Group"
}{
"code": "string",
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
],
"errors": [
{
"message": "string",
"path": "string"
}
],
"message": "string",
"status_code": 0
}{
"code": "string",
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
],
"errors": [
{
"message": "string",
"path": "string"
}
],
"message": "string",
"status_code": 0
}{
"code": "string",
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
],
"errors": [
{
"message": "string",
"path": "string"
}
],
"message": "string",
"status_code": 0
}