> For the complete documentation index, see [llms.txt](https://tag-api.agreefy.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tag-api.agreefy.com/create-new-gateway.md).

# Create New Gateway

Adding new gateway

**Gateway Type = BLE,RFID,BARCODE,GPS**

| Parameters                   | Type       | Description              |
| ---------------------------- | ---------- | ------------------------ |
| **gatewayType(Mandatory)**   | String(36) | **Gateway type**         |
| **gatewayMacID(Mandatory)**  | String(36) | **Gateway MacID**        |
| **gatewayName(Mandatory)**   | String(36) | **Gateway Name**         |
| **floorplanUUID(Mandatory)** | String(36) | **Floorplan UUID**       |
| **manufacturer(Mandatory)**  | String(36) | **Gateway manufacturer** |

**Gateway Type = VirtualBeacon**

| Parameters                         | Type       | Description              |
| ---------------------------------- | ---------- | ------------------------ |
| **gatewayType(Mandatory)**         | String(36) | **Gateway type**         |
| **gatewayMacID(Mandatory)**        | String(36) | **Gateway MacID**        |
| **gatewayName(Mandatory)**         | String(36) | **Gateway Name**         |
| **floorplanUUID(Mandatory)**       | String(36) | **Floorplan UUID**       |
| **virtualmanufacturer(Mandatory)** | String(36) | **Gateway manufacturer** |
| **virtualBeaconUUID(Mandatory)**   | String(36) | **Virtual beacon UUID**  |
| **virtualBeaconMinor(Mandatory)**  | INT        | **Virtual Beacon minor** |
| **virtualBeaconMajor(Mandatory)**  | INT        | **Virtual Beacon major** |

* URL Parameter&#x73;**:**

  **clientUUID**\ <br>

## New Gateway

<mark style="color:green;">`POST`</mark> `https://<baseurl>/v1/organization/gateway/add/@clientUUID`

#### Path Parameters

| Name       | Type   | Description |
| ---------- | ------ | ----------- |
| clientUUID | string | Client UUID |

#### Headers

| Name           | Type   | Description          |
| -------------- | ------ | -------------------- |
| Authentication | string | Authentication token |

{% tabs %}
{% tab title="200 " %}

```
#########################################################################
## success
#########################################################################

{
    "message": "success",
    "status": 200
}


#########################################################################
## Error:Unable to save data
#########################################################################
            
{
	"message": "error",
	"status": 400,
}

#########################################################################
## Gateway MacID already exists!
#########################################################################

{
    "message": "error",
    "status": 401,
    "description": "Gateway MacID already exists!"
}

#########################################################################
## Beacon already exists
#########################################################################

{
    "message": "error",
    "status": 402,
    "description": "Beacon already exists!"
}

#########################################################################
## Invalid Beacon UUID
#########################################################################

{
    "message": "error",
    "status": 403,
    "description": "Invalid Beacon UUID"
}

#########################################################################
## Invalid Data
#########################################################################

{
    "message": "error",
    "status": 404,
    "description": "Invalid data"
}




```

{% endtab %}
{% endtabs %}
