Get Variant.

GET /api/teams/{team}/experiments/{experiment}/variants/{variant}

Path parameters

  • team integer Required

    The ID of the team that the variant belongs to.

  • experiment string Required

    The experiment key that the variants belong to.

  • variant string Required

    The variant key to show.

Query parameters

  • include string

    Comma-separated list of relationships to include in the response.

Responses

  • 200 application/json
    Hide response attribute Show response attribute object
    • data object
      Hide data attributes Show data attributes object
      • id string
      • type string
      • attributes object
        Hide attributes attributes Show attributes attributes object
        • id integer
        • team_id integer
        • key string
        • control boolean
        • description string
        • created object
          Hide created attributes Show created attributes object
          • human string
          • string string
        • updated object
          Hide updated attributes Show updated attributes object
          • human string
          • string string
  • 403 application/json
    Hide response attribute Show response attribute object
    • message string
  • 404 application/json
    Hide response attribute Show response attribute object
    • message string
GET /api/teams/{team}/experiments/{experiment}/variants/{variant}
curl \
 -X GET https://checkmango.com/api/teams/11/experiments/magni/variants/odit \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "data": {
    "id": "QUI_CONSECTETUR_VOLUPTATE_CORRUPTI",
    "type": "variants",
    "attributes": {
      "id": 5,
      "team_id": 31,
      "key": "QUI_CONSECTETUR_VOLUPTATE_CORRUPTI",
      "control": false,
      "description": "Et id quo quis architecto pariatur consequuntur doloribus quod. Commodi tenetur autem eum inventore adipisci dolor sunt et. Suscipit ut nisi facilis cumque nobis odio officia perferendis. Molestiae aut qui enim quo aut omnis.",
      "created": {
        "human": "1 second ago",
        "string": "2024-04-08 10:42:02"
      },
      "updated": {
        "human": "1 second ago",
        "string": "2024-04-08 10:42:02"
      }
    },
    "links": {
      "self": {
        "href": "http://checkmango.com/api/teams/31/experiments/ULLAM_EA_PROVIDENT_RERUM_AUT/variants/QUI_CONSECTETUR_VOLUPTATE_CORRUPTI"
      }
    }
  }
}
Response examples (403)
{
  "message": "Unauthenticated."
}
Response examples (404)
{
  "message": "Not Found"
}