# Move Thing to Different Things Group

## Move Thing to Different Things Group

<mark style="color:orange;">`PUT`</mark> `https://console.monogoto.io/thing/replaceGroup`

#### Headers

| Name                                          | Type   | Description               |
| --------------------------------------------- | ------ | ------------------------- |
| YOUR\_TOKEN<mark style="color:red;">\*</mark> | String | Your authentication token |

#### Request Body

| Name                                               | Type   | Description                |
| -------------------------------------------------- | ------ | -------------------------- |
| ICCID<mark style="color:red;">\*</mark>            | String | The ICCID of your SIM      |
| THING\_GROUP\_ID<mark style="color:red;">\*</mark> | String | Identifier of Things Group |

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

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

### Example using **cURL:**

```bash
curl -X PUT \
    --url "https://console.monogoto.io/thing/replaceGroup/" \
    -H "accept: application/json" \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer {TOKEN_HERE}" \
    -d "{ \"ThingId\": \"ThingId_ICCID_{ICCID}\", \"ThingsGroupId\": \"{THING_GROUP_ID}\"}"

```

{% hint style="info" %}
Add your **Token**, **Thing ICCID** and **THING GROUP ID** in the PUT request to successfully execute the command.
{% endhint %}

Example request:&#x20;

```bash
curl -X PUT \
    --url "https://console.monogoto.io/thing/replaceGroup/" \
    -H "accept: application/json" \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer eyJhb6IkpXVCJ9.eyJSb2xlIjoiVXN4lclByb2ZpbGVJZF9kZGM2MThhNC0wNTI1LTQ2MmUtYWN3NzhhMGQxYmbSI6Im4zgFkbWluIiwiQ3VzdG9tsbCwiVXNlcklkIjoiVklkXzg5Yj5Y2OGEyUtNDQThhLTEzZjA0MzJhZDE3YyINTAzgZmUtZGI51My00ZjRiLTktN2U5Yjc0ZWU1ZThlIiwiaWNzM3MjI5L2MDY3NTE2Mjl9.99aSLzP7kTgK6TZGW-xalrMu0GkW6viunt3XxbNng" \
    -d "{ \"ThingId\": \"ThingId_ICCID_8912372646888991\", \"ThingsGroupId\": \"ThingsGroupId_e4642f60-bee1-4g467-93g46a-cee6ca46vb17a\"}"
```

Expected response should be empty:

```
 
```

{% openapi src="<https://3922449203-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0mPxGpottOEfcucXOR%2Fuploads%2FXtNpEMk17YOUrC39Cmvr%2FJPU_CustomerAPIV_Without_Test%20it.yaml?alt=media&token=09b74b38-dd09-4edc-8f98-4df792b3c986>" path="/thing/replaceGroup/" method="put" %}
[JPU\_CustomerAPIV\_Without\_Test it.yaml](https://3922449203-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0mPxGpottOEfcucXOR%2Fuploads%2FXtNpEMk17YOUrC39Cmvr%2FJPU_CustomerAPIV_Without_Test%20it.yaml?alt=media\&token=09b74b38-dd09-4edc-8f98-4df792b3c986)
{% endopenapi %}
