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

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"
}