# Create enterprise group service Create a new enterprise-level group service. Endpoint: POST /v1/enterprise-group-services Version: 0.0.4 Security: BearerAuth ## Header parameters: - `company-id` (string) Company MongoDB id used in auth context. Example: "65f4c840b6f1a10012ab34cd" ## Request fields (application/json): - `name` (string, required) Name. Example: "example" - `external_id` (string) External id. Example: "65f4c840b6f1a10012ab34cd" - `category_id` (string) Category id. Example: "65f4c840b6f1a10012ab34cd" - `description` (string) Description. Example: "example" - `color` (string) Color. Example: "active" - `duration` (integer, required) Duration. Example: 20 - `duration_before` (integer) Duration before. Example: 20 - `duration_after` (integer) Duration after. Example: 20 - `durations_pattern` (array, required) Durations pattern. Example: [15] - `price` (number) Price. Example: 19.9 - `has_online_payment` (boolean) Has online payment. Example: true - `is_bookable` (boolean) Is bookable. Example: true - `is_stalled` (boolean) Is stalled. Example: true - `is_payment_mandatory` (boolean) Is payment mandatory. Example: true - `max_participants` (integer) Max participants. Example: 20 - `dependencies` (string) Dependencies. Example: "example" - `affected_branch_ids` (array) Affected branch ids. Example: ["65f4c840b6f1a10012ab34cd"] - `affected_branch_external_ids` (array) Affected branch external ids. Example: ["65f4c840b6f1a10012ab34cd"] - `maximum_lead_time` (string) Maximum lead time. Example: "09:30" - `minimum_lead_time` (string) Minimum lead time. Example: "09:30" - `cancellation_lead_time` (string) Cancellation lead time. Example: "09:30" - `attributes` (string) Attributes. Example: "example" - `extra_persons` (string) Extra persons. Example: "example" - `location` (object) Location. Example: {"key":"value"} ## Response 201 fields (application/json): - `data` (object) Generic response data object for proxied GraphQL entities. Example: {"id":"65f4c840b6f1a10012ab34cd","externalId":"ext_1001","name":"Demo value"} - `status` (integer) Operation status flag. Example: 1 ## Response 400 fields (application/json): - `error` (string, required) Error message. Example: "Invalid request payload" - `name` (string) Error class name. Example: "BadRequestError" - `errorCode` (string) Application-specific error code. Example: 2 - `details` (object) Structured error details. Example: {"query":{"page":"invalid"}} - `extras` (object,null) Extra error metadata from downstream services. Example: {"code":"GRAPHQL_VALIDATION_FAILED"} ## Response 401 fields (application/json): - `error` (string, required) Error message. Example: "Invalid request payload" - `name` (string) Error class name. Example: "BadRequestError" - `errorCode` (string) Application-specific error code. Example: 2 - `details` (object) Structured error details. Example: {"query":{"page":"invalid"}} - `extras` (object,null) Extra error metadata from downstream services. Example: {"code":"GRAPHQL_VALIDATION_FAILED"} ## Response 500 fields (application/json): - `error` (string, required) Error message. Example: "Invalid request payload" - `name` (string) Error class name. Example: "BadRequestError" - `errorCode` (string) Application-specific error code. Example: 2 - `details` (object) Structured error details. Example: {"query":{"page":"invalid"}} - `extras` (object,null) Extra error metadata from downstream services. Example: {"code":"GRAPHQL_VALIDATION_FAILED"}