> For the complete documentation index, see [llms.txt](https://docs.antares.id/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.antares.id/en/api-or-http/data-of-device.md).

# Data of Device

### **Store Data of a Particular Device**

* **Request**

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

<table data-header-hidden><thead><tr><th width="149"></th><th width="569.3333333333334"></th></tr></thead><tbody><tr><td><strong>Field</strong></td><td><strong>Value</strong></td></tr><tr><td>URL</td><td><mark style="color:red;"><code>https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name</code></mark><br>or<br><mark style="color:red;"><code>https://platform.antares.id:8443/~/antares-cse/your-device-ID/</code></mark><br><br>Note: <mark style="color:red;"><code>ID-device-anda</code></mark> must be starting with <mark style="color:red;"><code>CNT</code></mark>. e.g. <mark style="color:red;"><code>CNT-842419289</code></mark></td></tr><tr><td>Method</td><td><mark style="color:red;"><code>POST</code></mark></td></tr></tbody></table>

**Header**

<table><thead><tr><th width="276"></th><th></th></tr></thead><tbody><tr><td><strong>Key</strong></td><td><strong>Value</strong></td></tr><tr><td>X-M2M-Origin</td><td><mark style="color:red;"><code>antares-access-key</code></mark></td></tr><tr><td>Content-Type</td><td><mark style="color:red;"><code>application/json;ty=4</code></mark></td></tr><tr><td>Accept</td><td><mark style="color:red;"><code>application/json</code></mark></td></tr></tbody></table>

**Body**

{% code lineNumbers="true" %}

```json
{
  "m2m:cin": {
    "con": "{\"key1\":\"integer-value\", \"key2\":\"string-value\", \"keyN\":\"valueN\"}"
  }
}

```

{% endcode %}
{% endtab %}

{% tab title="XML" %}

<table data-header-hidden><thead><tr><th width="118"></th><th width="569.3333333333334"></th></tr></thead><tbody><tr><td><strong>Field</strong></td><td><strong>Value</strong></td></tr><tr><td>URL</td><td><mark style="color:red;"><code>https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name</code></mark><br>or<br><mark style="color:red;"><code>https://platform.antares.id:8443/~/antares-cse/your-device-ID/</code></mark><br><br>Note: <mark style="color:red;"><code>ID-device-anda</code></mark> must be starting with <mark style="color:red;"><code>CNT</code></mark>. e.g. <mark style="color:red;"><code>CNT-842419289</code></mark></td></tr><tr><td>Method</td><td><mark style="color:red;"><code>POST</code></mark></td></tr></tbody></table>

**Header**

<table><thead><tr><th width="222"></th><th></th></tr></thead><tbody><tr><td><strong>Key</strong></td><td><strong>Value</strong></td></tr><tr><td>X-M2M-Origin</td><td><mark style="color:red;"><code>antares-access-key</code></mark></td></tr><tr><td>Content-Type</td><td><mark style="color:red;"><code>application/xml;ty=4</code></mark></td></tr><tr><td>Accept</td><td><mark style="color:red;"><code>application/xml</code></mark></td></tr></tbody></table>

**Body**

{% code lineNumbers="true" %}

```xml
<?xml version="1.0" encoding="UTF-8" ?>
<root>
	<m2m:cin>
		<con>{"key1":"integer-value", "key2":"string-value", "keyN":"valueN"}</con>
	</m2m:cin>
</root>
```

{% endcode %}
{% endtab %}
{% endtabs %}

**Note!!**\
**Key adalah nama variable sedangkan value adalah nilai dari variable tersebut.**

* **Response**

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

```json
{
    "m2m:cin": {
        "rn": "cin_893238184",
        "ty": 4,
        "ri": "/antares-cse/cin-893238184",
        "pi": "/antares-cse/cnt-995741382",
        "ct": "20191119T180722",
        "lt": "20191119T180722",
        "st": 0,
        "cnf": "text/plain:0",
        "cs": 62,
        "con": "{\"key1\":integer-value, \"key2\":\"string-value\", \"keyN\":\"valueN\"}"
    }
}
```

{% endtab %}

{% tab title="XML" %}
{% code lineNumbers="true" %}

```xml
<?xml version="1.0" encoding="UTF-8"?>
<m2m:cin xmlns:m2m="http://www.onem2m.org/xml/protocols" xmlns:hd="http://www.onem2m.org/
xml/protocols/homedomain" rn="cin_178578843">
    <ty>4</ty>
    <ri>/antares-cse/cin-178578843</ri>
    <pi>/antares-cse/cnt-995741382</pi>
    <ct>20191119T171604</ct>
    <lt>20191119T171604</lt>
    <st>0</st>
    <cnf>text/plain:0</cnf>
    <cs>100</cs>
    <con><obj>
        <num key1="value1"/>
        <str key2="value2"/>
        <bool keyN="valueN"/>
    </obj></con>
</m2m:cin>
```

{% endcode %}
{% endtab %}
{% endtabs %}

### **Retrieve all Data Content of Device**

* **Request**

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

<table data-header-hidden><thead><tr><th width="157"></th><th width="569.3333333333334"></th></tr></thead><tbody><tr><td><strong>Field</strong></td><td><strong>Value</strong></td></tr><tr><td>URL</td><td><mark style="color:red;"><code>https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name?fu=1&#x26;drt=2&#x26;ty=4</code></mark><br>or<br><mark style="color:red;"><code>https://platform.antares.id:8443/~/antares-cse/your-device-ID?fu=1&#x26;drt=2&#x26;ty=4</code></mark><br><br>Note: <mark style="color:red;"><code>ID-device-anda</code></mark> must be starting with <mark style="color:red;"><code>CNT</code></mark>. e.g. <mark style="color:red;"><code>CNT-842419289</code></mark></td></tr><tr><td>Method</td><td><mark style="color:red;"><code>GET</code></mark></td></tr></tbody></table>

**Header**

<table><thead><tr><th width="276"></th><th></th></tr></thead><tbody><tr><td><strong>Key</strong></td><td><strong>Value</strong></td></tr><tr><td>X-M2M-Origin</td><td> <mark style="color:red;"><code>antares-access-key</code></mark></td></tr><tr><td>Content-Type</td><td><mark style="color:red;"><code>application/json</code></mark></td></tr><tr><td>Accept</td><td><mark style="color:red;"><code>application/json</code></mark></td></tr></tbody></table>
{% endtab %}

{% tab title="XML" %}

<table data-header-hidden><thead><tr><th width="117"></th><th width="569.3333333333334"></th></tr></thead><tbody><tr><td><strong>Field</strong></td><td><strong>Value</strong></td></tr><tr><td>URL</td><td><mark style="color:red;"><code>https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name?fu=1&#x26;drt=2&#x26;ty=4</code></mark><br>or<br><mark style="color:red;"><code>https://platform.antares.id:8443/~/antares-cse/your-device-ID?fu=1&#x26;drt=2&#x26;ty=4</code></mark><br><br>Note: <mark style="color:red;"><code>ID-device-anda</code></mark> must be starting with <mark style="color:red;"><code>CNT</code></mark>. e.g. <mark style="color:red;"><code>CNT-842419289</code></mark></td></tr><tr><td>Method</td><td><mark style="color:red;"><code>GET</code></mark></td></tr></tbody></table>

**Header**

<table><thead><tr><th width="222"></th><th></th></tr></thead><tbody><tr><td><strong>Key</strong></td><td><strong>Value</strong></td></tr><tr><td>X-M2M-Origin</td><td><mark style="color:red;"><code>antares-access-key</code></mark></td></tr><tr><td>Content-Type</td><td><mark style="color:red;"><code>application/xml</code></mark></td></tr><tr><td>Accept</td><td><mark style="color:red;"><code>application/xml</code></mark></td></tr></tbody></table>
{% endtab %}
{% endtabs %}

* **Response**

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

```json
{
    "m2m:list": [
        {
            "m2m:cin": {
                "rn": "cin_zTLhcucd8f4OHqwBnKTH7OctolTORJKu",
                "ty": 4,
                "ri": "/antares-cse/cin-zTLhcucd8f4OHqwBnKTH7OctolTORJKu",
                "pi": "/antares-cse/cnt-eSGc7dlEqLPzfee3",
                "ct": "20230320T075808",
                "lt": "20230320T075808",
                "st": 0,
                "cnf": "text/plain:0",
                "cs": 14,
                "con": "{"status":"0"}"
            }
        }
    ]
}
```

{% endtab %}

{% tab title="XML" %}
{% code lineNumbers="true" %}

```xml
<?xml version="1.0" encoding="UTF-8"?>
<m2m:list xmlns:m2m="http://www.onem2m.org/xml/protocols" xmlns:hd="http://www.onem2m.org/xml/protocols/homedomain%22%3E
    <m2m:cin rn="cin_zTLhcucd8f4OHqwBnKTH7OctolTORJKu">
        <ty>4</ty>
        <ri>/antares-cse/cin-zTLhcucd8f4OHqwBnKTH7OctolTORJKu</ri>
        <pi>/antares-cse/cnt-eSGc7dlEqLPzfee3</pi>
        <ct>20230320T075808</ct>
        <lt>20230320T075808</lt>
        <st>0</st>
        <cnf>text/plain:0</cnf>
        <cs>14</cs>
        <con>{&#34;status&#34;:&#34;0&#34;}</con>
    </m2m:cin>
</m2m:list>
```

{% endcode %}
{% endtab %}
{% endtabs %}

### **Retrieve All Data ID of Device**

* **Request**

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

<table data-header-hidden><thead><tr><th width="196"></th><th width="569.3333333333334"></th></tr></thead><tbody><tr><td><strong>Field</strong></td><td><strong>Value</strong></td></tr><tr><td>URL</td><td><mark style="color:red;"><code>https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name?fu=1&#x26;ty=4&#x26;drt=1</code></mark><br>or<br><mark style="color:red;"><code>https://platform.antares.id:8443/~/antares-cse/your-device-ID?fu=1&#x26;ty=4&#x26;drt=1</code></mark><br><br>Note: <mark style="color:red;"><code>ID-device-anda</code></mark> must be starting with <mark style="color:red;"><code>CNT</code></mark>. e.g. <mark style="color:red;"><code>CNT-842419289</code></mark></td></tr><tr><td>Method</td><td><mark style="color:red;"><code>GET</code></mark></td></tr></tbody></table>

**Header**

<table><thead><tr><th width="276"></th><th></th></tr></thead><tbody><tr><td><strong>Key</strong></td><td><strong>Value</strong></td></tr><tr><td>X-M2M-Origin</td><td><mark style="color:red;"><code>antares-access-key</code></mark></td></tr><tr><td>Content-Type</td><td><mark style="color:red;"><code>application/json</code></mark></td></tr><tr><td>Accept</td><td><mark style="color:red;"><code>application/json</code></mark></td></tr></tbody></table>
{% endtab %}

{% tab title="XML" %}

<table data-header-hidden><thead><tr><th width="118"></th><th width="569.3333333333334"></th></tr></thead><tbody><tr><td><strong>Field</strong></td><td><strong>Value</strong></td></tr><tr><td>URL</td><td><mark style="color:red;"><code>https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name?fu=1&#x26;ty=4&#x26;drt=1</code></mark><br>or<br><mark style="color:red;"><code>https://platform.antares.id:8443/~/antares-cse/your-device-ID?fu=1&#x26;ty=4&#x26;drt=1</code></mark><br><br>Note: <mark style="color:red;"><code>ID-device-anda</code></mark> must be starting with <mark style="color:red;"><code>CNT</code></mark>. e.g. <mark style="color:red;"><code>CNT-842419289</code></mark></td></tr><tr><td>Method</td><td><mark style="color:red;"><code>GET</code></mark></td></tr></tbody></table>

**Header**

<table><thead><tr><th width="222"></th><th></th></tr></thead><tbody><tr><td><strong>Key</strong></td><td><strong>Value</strong></td></tr><tr><td>X-M2M-Origin</td><td><mark style="color:red;"><code>antares-access-key</code></mark></td></tr><tr><td>Content-Type</td><td><mark style="color:red;"><code>application/xml</code></mark></td></tr><tr><td>Accept</td><td><mark style="color:red;"><code>application/xml</code></mark></td></tr></tbody></table>
{% endtab %}
{% endtabs %}

* **Response**

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

```json
{
    "m2m:uril": [
        "/antares-cse/antares-id/nama-aplikasi-anda/nama-device-anda/cin_893238184",
        "/antares-cse/antares-id/your-aplikasi-anda/nama-device-anda/cin_178578843"
    ]
}
```

{% endtab %}

{% tab title="XML" %}
{% code lineNumbers="true" %}

```xml
<?xml version="1.0" encoding="UTF-8"?>
<m2m:uril xmlns:m2m="http://www.onem2m.org/xml/protocols" xmlns:hd="http://www.onem2m.org/
xml/protocols/homedomain">/antares-cse/antares-id/nama-application-anda/nama-device-anda/cin_893238184 
/antares-cse/antares-id/nama-aplikasi-anda/nama-device-anda/cin_178578843</m2m:uril>
```

{% endcode %}
{% endtab %}
{% endtabs %}

### **Retrieve Particular Data of Device**

* **Request**

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

<table data-header-hidden><thead><tr><th width="113"></th><th width="569.3333333333334"></th></tr></thead><tbody><tr><td><strong>Field</strong></td><td><strong>Value</strong></td></tr><tr><td>URL</td><td><p><mark style="color:red;"><code>https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name/data-from-device-ID</code></mark><br>or</p><p><mark style="color:red;"><code>https://platform.antares.id:8443/~/antares-cse/data-from-device-ID</code></mark><a href="https://platform.antares.id:8443/~/antares-cse/data-of-device-ID"><br></a><br>Note: <mark style="color:red;"><code>data-from-device-ID</code></mark> merupakan salah satu yang didapatkan ketika <a href="https://antares.id/id/docs.html#data-of-device-retrieve-all">Retrieving All Data of Device ID. </a>harus diawali dengan <mark style="color:red;"><code>cin</code></mark>. e.g. <mark style="color:red;"><code>cin-122882447</code></mark></p></td></tr><tr><td>Method</td><td><mark style="color:red;"><code>GET</code></mark></td></tr></tbody></table>

**Header**

<table><thead><tr><th width="276"></th><th></th></tr></thead><tbody><tr><td><strong>Key</strong></td><td><strong>Value</strong></td></tr><tr><td>X-M2M-Origin</td><td><mark style="color:red;"><code>antares-access-key</code></mark></td></tr><tr><td>Content-Type</td><td><mark style="color:red;"><code>application/json</code></mark></td></tr><tr><td>Accept</td><td><mark style="color:red;"><code>application/json</code></mark></td></tr></tbody></table>
{% endtab %}

{% tab title="XML" %}

<table data-header-hidden><thead><tr><th width="118"></th><th width="569.3333333333334"></th></tr></thead><tbody><tr><td><strong>Field</strong></td><td><strong>Value</strong></td></tr><tr><td>URL</td><td><p><mark style="color:red;"><code>https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name/data-from-device-ID</code></mark><br>or</p><p><mark style="color:red;"><code>https://platform.antares.id:8443/~/antares-cse/data-from-device-ID</code></mark><a href="https://platform.antares.id:8443/~/antares-cse/data-of-device-ID"><br></a><br>Note: <mark style="color:red;"><code>data-from-device-ID</code></mark> merupakan salah satu yang didapatkan ketika <a href="https://antares.id/id/docs.html#data-of-device-retrieve-all">Retrieving All Data of Device ID. </a>harus diawali dengan <mark style="color:red;"><code>cin</code></mark>. e.g. <mark style="color:red;"><code>cin-122882447</code></mark></p></td></tr><tr><td>Method</td><td><mark style="color:red;"><code>GET</code></mark></td></tr></tbody></table>

**Header**

<table><thead><tr><th width="222"></th><th></th></tr></thead><tbody><tr><td><strong>Key</strong></td><td><strong>Value</strong></td></tr><tr><td>X-M2M-Origin</td><td><mark style="color:red;"><code>antares-access-key</code></mark></td></tr><tr><td>Content-Type</td><td><mark style="color:red;"><code>application/xml</code></mark></td></tr><tr><td>Accept</td><td><mark style="color:red;"><code>application/xml</code></mark></td></tr></tbody></table>
{% endtab %}
{% endtabs %}

* **Response**

{% tabs %}
{% tab title="JSON" %}
Result

```json
{
    "m2m:cin": {
        "rn": "cin_893238184",
        "ty": 4,
        "ri": "/antares-cse/cin-893238184",
        "pi": "/antares-cse/cnt-995741382",
        "ct": "20191119T180722",
        "lt": "20191119T180722",
        "st": 0,
        "cnf": "text/plain:0",
        "cs": 62,
        "con": "{\"key1\":integer-value, \"key2\":\"string-value\", \"keyN\":\"valueN\"}"
    }
}
```

{% endtab %}

{% tab title="XML" %}
Result

{% code lineNumbers="true" %}

```xml
<?xml version="1.0" encoding="UTF-8"?>
<m2m:cin xmlns:m2m="http://www.onem2m.org/xml/protocols" xmlns:hd="http://www.onem2m.org/
xml/protocols/homedomain" rn="cin_893238184">
    <ty>4</ty>
    <ri>/antares-cse/cin-893238184</ri>
    <pi>/antares-cse/cnt-995741382</pi>
    <ct>20191119T180722</ct>
    <lt>20191119T180722</lt>
    <st>0</st>
    <cnf>text/plain:0</cnf>
    <cs>62</cs>
    <con>{"key1":integer-value, "key2":"string-value", "keyN":"valueN"}</con>
</m2m:cin>
```

{% endcode %}
{% endtab %}
{% endtabs %}

### **Retrieve Latest Data**

* **Request**

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

<table data-header-hidden><thead><tr><th width="113"></th><th width="569.3333333333334"></th></tr></thead><tbody><tr><td><strong>Field</strong></td><td><strong>Value</strong></td></tr><tr><td>URL</td><td><mark style="color:red;"><code>https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name/la</code></mark></td></tr><tr><td>Method</td><td><mark style="color:red;"><code>GET</code></mark></td></tr></tbody></table>

**Header**

<table><thead><tr><th width="276"></th><th></th></tr></thead><tbody><tr><td><strong>Key</strong></td><td><strong>Value</strong></td></tr><tr><td>X-M2M-Origin</td><td><mark style="color:red;"><code>antares-access-key</code></mark></td></tr><tr><td>Content-Type</td><td><mark style="color:red;"><code>application/json;ty=4</code></mark></td></tr><tr><td>Accept</td><td><mark style="color:red;"><code>application/json</code></mark></td></tr></tbody></table>
{% endtab %}

{% tab title="XML" %}

<table data-header-hidden><thead><tr><th width="118"></th><th width="569.3333333333334"></th></tr></thead><tbody><tr><td><strong>Field</strong></td><td><strong>Value</strong></td></tr><tr><td>URL</td><td><mark style="color:red;"><code>https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name/la</code></mark></td></tr><tr><td>Method</td><td><mark style="color:red;"><code>GET</code></mark></td></tr></tbody></table>

**Header**

<table><thead><tr><th width="222"></th><th></th></tr></thead><tbody><tr><td><strong>Key</strong></td><td><strong>Value</strong></td></tr><tr><td>X-M2M-Origin</td><td><mark style="color:red;"><code>antares-access-key</code></mark></td></tr><tr><td>Content-Type</td><td><mark style="color:red;"><code>application/xml;ty=4</code></mark></td></tr><tr><td>Accept</td><td><mark style="color:red;"><code>application/xml</code></mark></td></tr></tbody></table>
{% endtab %}
{% endtabs %}

* **Response**

{% tabs %}
{% tab title="JSON" %}
Result

```json
{
    "m2m:cin": {
        "rn": "cin_893238184",
        "ty": 4,
        "ri": "/antares-cse/cin-893238184",
        "pi": "/antares-cse/cnt-995741382",
        "ct": "20191119T180722",
        "lt": "20191119T180722",
        "st": 0,
        "cnf": "text/plain:0",
        "cs": 62,
        "con": "{\"key1\":integer-value, \"key2\":\"string-value\", \"keyN\":\"valueN\"}"
    }
}
```

{% endtab %}

{% tab title="XML" %}
Result

```xml
<?xml version="1.0" encoding="UTF-8"?>
<m2m:cin xmlns:m2m="http://www.onem2m.org/xml/protocols" xmlns:hd="http://www.onem2m.org/
xml/protocols/homedomain" rn="cin_893238184">
    <ty>4</ty>
    <ri>/antares-cse/cin-893238184</ri>
    <pi>/antares-cse/cnt-995741382</pi>
    <ct>20191119T180722</ct>
    <lt>20191119T180722</lt>
    <st>0</st>
    <cnf>text/plain:0</cnf>
    <cs>62</cs>
    <con>{"key1":integer-value, "key2":"string-value", "keyN":"valueN"}</con>
</m2m:cin>
```

{% endtab %}
{% endtabs %}

### **Retrieve Oldest Data**

* **Request**

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

<table data-header-hidden><thead><tr><th width="113"></th><th width="569.3333333333334"></th></tr></thead><tbody><tr><td><strong>Field</strong></td><td><strong>Value</strong></td></tr><tr><td>URL</td><td><mark style="color:red;"><code>https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name/ol</code></mark></td></tr><tr><td>Method</td><td><mark style="color:red;"><code>GET</code></mark></td></tr></tbody></table>

**Header**

<table><thead><tr><th width="276"></th><th></th></tr></thead><tbody><tr><td><strong>Key</strong></td><td><strong>Value</strong></td></tr><tr><td>X-M2M-Origin</td><td><mark style="color:red;"><code>antares-access-key</code></mark></td></tr><tr><td>Content-Type</td><td><mark style="color:red;"><code>application/json;ty=4</code></mark></td></tr><tr><td>Accept</td><td><mark style="color:red;"><code>application/json</code></mark></td></tr></tbody></table>
{% endtab %}

{% tab title="XML" %}

<table data-header-hidden><thead><tr><th width="118"></th><th width="569.3333333333334"></th></tr></thead><tbody><tr><td><strong>Field</strong></td><td><strong>Value</strong></td></tr><tr><td>URL</td><td><mark style="color:red;"><code>https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name/ol</code></mark></td></tr><tr><td>Method</td><td><mark style="color:red;"><code>GET</code></mark></td></tr></tbody></table>

**Header**

<table><thead><tr><th width="222"></th><th></th></tr></thead><tbody><tr><td><strong>Key</strong></td><td><strong>Value</strong></td></tr><tr><td>X-M2M-Origin</td><td><mark style="color:red;"><code>antares-access-key</code></mark></td></tr><tr><td>Content-Type</td><td><mark style="color:red;"><code>application/xml;ty=4</code></mark></td></tr><tr><td>Accept</td><td><mark style="color:red;"><code>application/xml</code></mark></td></tr></tbody></table>
{% endtab %}
{% endtabs %}

* **Response**

{% tabs %}
{% tab title="JSON" %}
Result

```json
{
    "m2m:cin": {
        "rn": "cin_178578843",
        "ty": 4,
        "ri": "/antares-cse/cin-178578843",
        "pi": "/antares-cse/cnt-995741382",
        "ct": "20191119T171604",
        "lt": "20191119T171604",
        "st": 0,
        "cnf": "text/plain:0",
        "cs": 100,
        "con": "<obj>\n
                    <num key1=\"value1\"/>\n
                    <str key2=\"value2\"/>\n        
                    <bool keyN=\"valueN\"/>\n
                </obj>"
    }
}
```

{% endtab %}

{% tab title="XML" %}
Result

```xml
<?xml version="1.0" encoding="UTF-8"?>
<m2m:cin xmlns:m2m="http://www.onem2m.org/xml/protocols" xmlns:hd="http://www.onem2m.org/
xml/protocols/homedomain" rn="cin_178578843">
    <ty>4</ty>
    <ri>/antares-cse/cin-178578843</ri>
    <pi>/antares-cse/cnt-995741382</pi>
    <ct>20191119T171604</ct>
    <lt>20191119T171604</lt>
    <st>0</st>
    <cnf>text/plain:0</cnf>
    <cs>100</cs>
    <con><obj>
        <num key1="value1"/>
        <str key2="value2"/>
        <bool keyN="valueN"/>
</obj></con>
</m2m:cin>
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.antares.id/en/api-or-http/data-of-device.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
