Group Create

Create a group for updating and retrieving all light states

The following request can be used for creation of group resource containers_grp by MN-AE. The group resource is created with two initial member ids of the light container resources.

HTTP Request with XML payload
    POST /home_gateway/gateway_ae?rcn=0 HTTP/1.1
    Host: mn.provider.com:8080
    X-M2M-Origin: Cgateway_ae
    Content-Type: application/vnd.onem2m-res+xml; ty=9
    X-M2M-RI: mncse-76905 
        
    <m2m:grp xmlns:m2m="http://www.onem2m.org/xml/protocols" rn="containers_grp">
      <mt>3</mt>
      <mid>/mn-cse/cnt-582759912 /mn-cse/cnt-582769893</mid>
      <mnm>10</mnm>    
    </m2m:grp>
HTTP Response
    HTTP/1.1 201 Created
    X-M2M-RSC: 2001
    X-M2M-RI: mncse-76905 
    Content-Location: /mn-cse/grp-977978327
HTTP Request with JSON payload
    POST /home_gateway/gateway_ae?rcn=0 HTTP/1.1
    Host: mn.provider.com:8080
    X-M2M-Origin: Cgateway_ae
    Content-Type: application/vnd.onem2m-res+json; ty=9
    X-M2M-RI: mncse-76905 
        
    { "m2m:grp": {
        "rn": "containers_grp",
        "mt": "3",
        "mid": ["/mn-cse/cnt-582759912", "/mn-cse/cnt-582769893"],
        "mnm": "10"
      }
    }
HTTP Response
    HTTP/1.1 201 Created
    X-M2M-RSC: 2001
    X-M2M-RI: mncse-76905 
    Content-Location: /mn-cse/grp-977978327