API
HQ APIEnterprise

Detach company from enterprise

Detaches a company from its current enterprise, creating a new enterprise for the company.

The new enterprise is named after the company's store name. If the store name is not set, the source enterprise's name is used as a fallback.

If the source enterprise has no remaining non-deleted outlets after the detach, it is soft-deleted.

POST/v1/hq/companies/{company_id}/detach-from-enterprise
AuthorizationBearer <token>

The Noona HQ API uses Bearer token for authentication.

Endpoints that return generic information that does not contain sensitive data do not require authentication. Endpoints that require authentication are specifically marked in the documentation.

Authorization: Bearer your-token

In: header

Path Parameters

company_id*string

Company ID

Response Body

application/json

curl -X POST "https://api.noona.is/v1/hq/companies/string/detach-from-enterprise"
{
  "id": "aqmzX9Cm5tekKecsA",
  "companies": [
    "string"
  ],
  "connections": {
    "url_name": "noonacuts",
    "allows_booking_without_auth": true,
    "marketplace": {
      "enable_vouchers": true
    },
    "vouchers": {
      "enabled": true,
      "settlement_account_id": "wda8wud9a8wuddopk"
    }
  },
  "profile": {
    "name": "Noonacuts",
    "image": {
      "thumb": "https://placekitten.com/200/200",
      "image": "https://placekitten.com/200/300",
      "public_id": "https://placekitten.com/200/300",
      "type": "thumbnail",
      "provider": "cloudinary",
      "width": 200,
      "height": 300,
      "bytes": 95849
    },
    "cover_images": [
      {
        "thumb": "https://placekitten.com/200/200",
        "image": "https://placekitten.com/200/300",
        "public_id": "https://placekitten.com/200/300",
        "type": "thumbnail",
        "provider": "cloudinary",
        "width": 200,
        "height": 300,
        "bytes": 95849
      }
    ]
  }
}
Empty
Empty
Empty
Empty
Empty