Update Feature.

PUT /api/teams/{team}/features/{feature}

Path parameters

  • team integer Required

    The ID of the team that the feature belongs to.

  • feature string Required

    The key of the feature to show.

application/json

Responses

  • 200 application/json
    Hide response attribute Show response attribute object
  • 403 application/json
    Hide response attribute Show response attribute object
  • 404 application/json
    Hide response attribute Show response attribute object
  • 422 application/json
    Hide response attributes Show response attributes object
PUT /api/teams/{team}/features/{feature}
curl \
 -X PUT https://checkmango.com/api/teams/14/features/et \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"key":"string","description":"Eos autem sint quia vitae asperiores alias at aut.","enabled":false,"value":"at"}'
Request example
{
  "key": "string",
  "description": "Eos autem sint quia vitae asperiores alias at aut.",
  "enabled": false,
  "value": "at"
}
Response examples (200)
{
  "data": {
    "id": "NIHIL_EUM_EOS_POSSIMUS",
    "type": "features",
    "attributes": {
      "id": 5,
      "team_id": 63,
      "key": "NIHIL_EUM_EOS_POSSIMUS",
      "description": "Ducimus sed magnam molestias occaecati voluptate et totam. Molestias doloremque fugit quisquam quis. Temporibus ullam omnis beatae ratione molestiae tenetur. Quia placeat necessitatibus itaque aut qui ullam.\n\nAspernatur recusandae vitae ducimus ab dolores occaecati. Amet dolor ad a ex cumque dolorem.\n\nAut atque in dignissimos placeat id est aspernatur. Ab corporis et quo dolorem. Officia voluptatem et rerum. Omnis iusto quia non repellendus repudiandae illo.",
      "enabled": true,
      "value": null,
      "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/63/features/NIHIL_EUM_EOS_POSSIMUS"
      }
    }
  }
}
Response examples (403)
{
  "message": "Unauthenticated."
}
Response examples (404)
{
  "message": "Not Found"
}
Response examples (422)
{
  "message": "The given data was invalid.",
  "errors": {
    "key": [
      "The key has already been taken."
    ]
  }
}