---
updatedAt: 2026-04-24T16:36:55.000Z
agentTools:
  projectIndex: https://developers.cloudbeds.com/llms.txt
---

# Disable a Market Segmentation Group.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Cloudbeds API v2",
    "description": "<p>Welcome to the documentation for <strong>Cloudbeds API Version v2</strong>! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.</p><p>In this document you will find all the API methods we provide along with explanations for parameters and response examples.</p><p>If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our <a href='https://integrations.cloudbeds.com/hc/en-us'>Integrations Portal</a>.</p><p>Be sure to <a href='https://go.pardot.com/l/308041/2018-07-24/qb2lg'>subscribe</a> to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.</p><p><strong>Endpoint:</strong> https://api.cloudbeds.com/{method}</p><p><strong>HTTPS:</strong> Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.</p><p><strong>Request Format:</strong> HTTP GET, POST, PUT, PATCH and DELETE; request bodies are JSON (Content-Type: application/json)</p><p><strong>Response Format:</strong> JSON</p><p><strong>Response Header:</strong> X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.</p><p><strong><a href='https://integrations.cloudbeds.com/hc/en-us/articles/14104678058267-API-Documentation#postman-collection'><img src='https://run.pstmn.io/button.svg' alt='Run in Postman'></a></strong> use this link to access our Public collection in Postman.</p>",
    "version": "v2"
  },
  "servers": [
    {
      "url": "https://api.cloudbeds.com/",
      "description": "Cloudbeds API v2"
    }
  ],
  "paths": {
    "/market-segmentation/v1/groups/{id}/disable": {
      "post": {
        "tags": [
          "Market Segmentation"
        ],
        "summary": "Disable a Market Segmentation Group.",
        "operationId": "GroupController::disable",
        "parameters": [
          {
            "name": "x-property-id",
            "in": "header",
            "description": "A numeric, comma-separated string representing the property IDs, sent in the header.",
            "required": true,
            "schema": {
              "type": "string",
              "example": "1,2,3"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "Group ID.",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/GroupDisableRequestSchema/properties/id"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Market Segmentation Group was disabled.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NoContentResponseSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad request response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestResponseSchema"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenResponseSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not found response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundResponseSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerErrorResponseSchema"
                }
              }
            }
          }
        },
        "security": [
          {
            "default": [
              "write:marketsegment"
            ]
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "BadRequestErrorItemSchema": {
        "required": [
          "field",
          "message"
        ],
        "properties": {
          "field": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "code": {
            "description": "Error code identifying the specific validation failure",
            "type": "string",
            "example": "GROUP_CUSTOM_RATE_NOT_ALLOWED",
            "nullable": true
          },
          "details": {
            "description": "Additional details about the validation failure",
            "type": "object",
            "nullable": true
          }
        },
        "type": "object"
      },
      "BadRequestErrorListSchema": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/BadRequestErrorItemSchema"
        }
      },
      "BadRequestResponseSchema": {
        "required": [
          "message"
        ],
        "properties": {
          "message": {
            "type": "string"
          },
          "errors": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/BadRequestErrorListSchema"
              }
            ],
            "nullable": true,
            "description": "The list of errors"
          },
          "code": {
            "description": "Error code identifying the type of error",
            "type": "string",
            "example": "INVALID_REQUEST",
            "nullable": true
          }
        },
        "type": "object"
      },
      "ForbiddenResponseSchema": {
        "properties": {
          "message": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "InternalServerErrorResponseSchema": {
        "required": [
          "message"
        ],
        "properties": {
          "message": {
            "type": "string"
          },
          "code": {
            "description": "Error code identifying the type of error",
            "type": "string",
            "example": "PAYMENT_VOID_FAILED",
            "nullable": true
          }
        },
        "type": "object"
      },
      "NoContentResponseSchema": {},
      "NotFoundResponseSchema": {
        "properties": {
          "message": {
            "type": "string"
          },
          "code": {
            "description": "Error code identifying the type of error",
            "type": "string",
            "example": "RESOURCE_NOT_FOUND",
            "nullable": true
          }
        },
        "type": "object"
      },
      "GroupDisableRequestSchema": {
        "required": [
          "id"
        ],
        "properties": {
          "id": {
            "description": "Group ID.",
            "type": "string",
            "example": "1-b"
          }
        },
        "type": "object"
      }
    },
    "securitySchemes": {
      "default": {
        "type": "oauth2",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://api.cloudbeds.com/auth/oauth/authorize",
            "tokenUrl": "https://api.cloudbeds.com/auth/oauth/token",
            "scopes": {
              "read:addon": "Read Addon information",
              "read:doorLockKey": "Read DoorLock keys and settings",
              "write:doorLockKey": "Write DoorLock keys and settings",
              "delete:doorLockKey": "Delete DoorLock keys and settings",
              "read:housekeeping": "Read Housekeeping inspections",
              "read:marketsegment": "Read Market Segmentation groups and segments",
              "write:marketsegment": "Write Market Segmentation groups and segments",
              "delete:marketsegment": "Delete Market Segmentation groups and segments",
              "write:importTask": "Create new data imports",
              "read:importTask": "Read data imports",
              "hotel:read": "Read Hotel information",
              "hotel:write": "Write Hotel information",
              "hotel:delete": "Delete Hotel information",
              "write:appError": "Write AppError information",
              "read:agePolicy": "Read Age Policy information",
              "write:agePolicy": "Write Age Policy information",
              "delete:agePolicy": "Delete Age Policy information",
              "write:allotmentBlocks": "Write AllotmentBlock information",
              "read:allotmentBlocks": "Read AllotmentBlock information",
              "delete:allotmentBlocks": "Delete AllotmentBlock information"
            }
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Market Segmentation",
      "description": "Market Segmentation"
    }
  ]
}
```