netexCloud - Web Services API | Groups Web services | Get ancestor groups

Get ancestor groups

Get ancestor groups of the selected group.

  • URL: /integration/ws/management/rest/groups/<id_grupo_o_codGroup>/ancestors
  • Method: GET
  • Headers:
    • Accept: version/format header
    • X-Cloud-Auth-Token*: authorization header
  • Parameters: id or codGroup, included in URL.
  • Responses:
    • 200: OK. Content: JSON array with groups data.
  • Request example:
  • Response example:
    • Payload: [{"codGroup":"root1","description":"bla bla bla bla bla bla bla bla bla bla balb bla bla bla bla bla bla bla bla bla bla balbbla bla bla bla bla bla bla bla bla bla balbbla bla bla bla bla bla bla bla bla bla balbbla bla bla bla bla bla bla bla bla bla balbbla bla bla bla bla bla bla bla bla bla balbbla bla bla bla bla bla bla bla bla bla balbbla bla bla bla bla bla bla bla bla bla balbbla bla bla bla bla bla bla bla bla bla balbbla bla bla bla bla bla bla bla bla bla balbbla bla bla bla bla bla bla bla bla bla balbbla bla bla bla bla bla bla bla bla bla balbbla bla bla bla bla bla bla bla bla bla balbbla bla bla bla bla bla bla bla bla bla balbbla bla bla bla bla bla bla bla bla bla bal","extra":{},"id":"8a80807d5ab3d79f015ab3dcb2110000","image":{"url":null},"name":"Baloncesto","parentId":null,"roles":{}},{"codGroup":"teachers3","description":"Users included in this group will have LMS trainer role.","extra":{},"id":"8a80807d5bd29c2f015bd30bded00001","image":{"url":"http://zblogged.com/wp-content/uploads/2015/11/17.jpg"},"name":"Teachers group aaaaa","parentId":"root1","roles":{"training":["trainer"]}}]