Get One Group

Below you see an example on how to list one group. Examples both in JSON and JSONAPI are provided.

NOTE: Remember to substitute the token (after Bearer) and the service id (the "[SERVCICE ID]" below) to your own token and service id.

Retrieving Group 8 from a service with id [SERVICE ID]

JSON:

curl 
  -H "Authorization: Bearer [API SECURITY TOKEN]"
  -H "Content-Type: application/json" 
  -H "Accept: application/json"
  -X GET
  https://api.myrapidi.com/api/v2/service/[SERVCICE ID]/groups/8

The output for this example would be:

{
  "id": "8",
  "code": "CONTACT",
  "description": "Contact Transfers",
  "comments": []
}

JSONAPI:

curl 
  -H "Authorization: Bearer [API SECURITY TOKEN]"
  -H "Content-Type: application/vnd.api+json" 
  -H "Accept: application/vnd.api+json"
  -X GET
  https://api.myrapidi.com/api/v2/service/[SERVCICE ID]/groups/8

The output for this example would be:

{
  "data":{
    "id": "8",
    "type": "groups",
    "attributes": {
      "code": "CONTACT",
      "description": "Contact Transfers"
    },
    "relationships": {
      "comments": {
        "data": []
      }
    }
  }
}