# Create office title (admin only) Endpoint: POST /offices/create Version: 1.0.0 Security: BearerAuth ## Request fields (application/json): - `name` (string) - `title` (string) - `description` (string,null) - `sections` (array) - `sections.id` (string) - `sections.type` (string, required) Enum: "list", "richtext" - `sections.items` (array) - `sections.items.content` (string, required) - `level` (string, required) Enum: "CHIEF_CHAPLAIN", "NATIONAL_CHAPLAIN_DIRECTOR", "REGIONAL_CHAPLAIN_DIRECTOR", "REGIONAL_DEPUTY_CHAPLAIN_DIRECTOR", "PROVINCIAL_CHAPLAIN_DIRECTOR", "PROVINCIAL_DEPUTY_CHAPLAIN_DIRECTOR", "CITY_CHAPLAIN", "MUNICIPAL_CHAPLAIN", "CITY_MUNICIPAL_DEPUTY_CHAPLAIN", "BARANGAY_CHAPLAIN", "BARANGAY_DEPUTY_CHAPLAIN" - `maxSlots` (integer,null) ## Response 201 fields (application/json): - `code` (string, required) - `message` (string, required) - `data` (object, required) - `data.id` (string, required) - `data.name` (string, required) - `data.level` (string, required) Enum: "CHIEF_CHAPLAIN", "NATIONAL_CHAPLAIN_DIRECTOR", "REGIONAL_CHAPLAIN_DIRECTOR", "REGIONAL_DEPUTY_CHAPLAIN_DIRECTOR", "PROVINCIAL_CHAPLAIN_DIRECTOR", "PROVINCIAL_DEPUTY_CHAPLAIN_DIRECTOR", "CITY_CHAPLAIN", "MUNICIPAL_CHAPLAIN", "CITY_MUNICIPAL_DEPUTY_CHAPLAIN", "BARANGAY_CHAPLAIN", "BARANGAY_DEPUTY_CHAPLAIN" - `data.description` (string,null) - `data.maxSlots` (integer,null) - `data.sections` (array, required) - `data.sections.title` (string, required) - `data.sections.type` (string, required) Enum: "list", "richtext" - `data.sections.items` (array) - `data.sections.items.content` (string, required) - `data.createdAt` (string, required) - `data.updatedAt` (string, required) ## Response 400 fields (application/json): - `code` (string, required) Example: "BAD_REQUEST" - `errors` (array, required) - `errors.path` (string, required) Example: "email" - `errors.message` (string, required) Example: "Email is required" ## Response 401 fields (application/json): - `code` (string, required) Example: "BAD_REQUEST" - `message` (string, required) Example: "Invalid request" - `error` (any) Optional debug payload ## Response 403 fields (application/json): - `code` (string, required) Example: "BAD_REQUEST" - `message` (string, required) Example: "Invalid request" - `error` (any) Optional debug payload ## Response 409 fields (application/json): - `code` (string, required) Example: "BAD_REQUEST" - `message` (string, required) Example: "Invalid request" - `error` (any) Optional debug payload ## Response 500 fields (application/json): - `code` (string, required) Example: "BAD_REQUEST" - `message` (string, required) Example: "Invalid request" - `error` (any) Optional debug payload