Errors

Code Description
401 Unauthorized
500 Internal Server Error
422 Missing parameters

Examples

POST /api/v2/admin/field_groups
{
  "name": "Test_field_group"
}
200
{
  "field_group": {
    "id": 1,
    "name": "Test_field_group",
    "created_at": "2021-10-05T08:59:48.841Z",
    "updated_at": "2021-10-05T08:59:48.841Z",
    "group_type": "default"
  },
  "errors": []
}
POST /api/v2/admin/field_groups
{
  "name": "Test Field Not Authenticated"
}
401
POST /api/v2/admin/field_groups
{
  "name": "Test Field Default User"
}
401

Params

Param name Description
name
required

Field group name

Validations:

  • Must be a String

group_type
optional

Field group type

Validations:

  • Must be one of: default, complex.

Headers

Header name Description
Content-Type
required
application/json
X-API-KEY
required
YOUR_API_KEY