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

Body

  • key string
  • description string
  • enabled boolean
  • value string

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
        • description string
        • enabled boolean
        • value 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
  • 422 application/json
    Hide response attributes Show response attributes object
    • message string
    • errors object
      Hide errors attribute Show errors attribute object
      • key array[string]
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."
    ]
  }
}