Create

POST /api/congregations

Create a new congregation

application/json

Body Required

  • name string Required

    Minimum length is 2, maximum length is 100.

  • number integer | null

    Minimum value is 1.0.

  • city string Required

    Minimum length is 2, maximum length is 100.

  • state string | null Required

    Minimum length is 2, maximum length is 50.

  • circuit object | null
    Hide circuit attribute Show circuit attribute object | null
    • id string Required

      Minimum length is 26, maximum length is 26.

Responses

  • 201 application/json

    Successful Response

    Hide response attributes Show response attributes object
    • name string Required

      Minimum length is 2, maximum length is 100.

    • number integer | null

      Minimum value is 1.0.

    • city string Required

      Minimum length is 2, maximum length is 100.

    • state string | null Required

      Minimum length is 2, maximum length is 50.

    • id string Required

      Maximum length is 26.

    • circuit object | null
      Hide circuit attributes Show circuit attributes object | null
      • name string Required

        Minimum length is 3, maximum length is 100.

      • id string Required

        Maximum length is 26.

  • 422 application/json

    Validation Error

    Hide response attribute Show response attribute object
    • detail array[object]
      Hide detail attributes Show detail attributes object
POST /api/congregations
curl \
 -X POST https://metropolitanabolivia.org/api/congregations \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"name":"string","number":42,"city":"string","state":"string","circuit":{"id":"string"}}'
Request example
{
  "name": "string",
  "number": 42,
  "city": "string",
  "state": "string",
  "circuit": {
    "id": "string"
  }
}
Response examples (201)
{
  "name": "string",
  "number": 42,
  "city": "string",
  "state": "string",
  "id": "string",
  "circuit": {
    "name": "string",
    "id": "string"
  }
}
Response examples (422)
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}