Path parameters
-
The ID of the team that features belong to.
Body Required
-
Must match the regex /[a-z0-9]+(?:_[a-z0-9]+)*$/i. Must not be greater than 255 characters.
-
description string
-
enabled boolean
-
value string
POST /api/teams/{team}/features
curl \
-X POST https://checkmango.com/api/teams/20/features \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"key":"eounxrt","description":"Consequatur velit alias quam sit esse qui.","enabled":false,"value":"neque"}'
Request example
{
"key": "eounxrt",
"description": "Consequatur velit alias quam sit esse qui.",
"enabled": false,
"value": "neque"
}
Response examples (200)
{
"data": {
"id": "SUNT_CUPIDITATE_NISI_QUIA_LABORUM",
"type": "features",
"attributes": {
"id": 3,
"team_id": 61,
"key": "SUNT_CUPIDITATE_NISI_QUIA_LABORUM",
"description": "Eum ipsum error ab et quam assumenda eveniet. At occaecati laudantium veniam aut. Ut qui quisquam voluptatem a temporibus qui veniam. Rem voluptates voluptatum dignissimos velit voluptatibus eum voluptate.\n\nHarum sit incidunt ut. Architecto doloremque asperiores eos quae distinctio necessitatibus qui. Repellat assumenda vel sunt voluptas officia.\n\nReiciendis illo aliquam hic excepturi quia voluptatum. Rem quaerat veritatis ipsam ipsa. At sed sequi in voluptatem. Quia officia necessitatibus culpa omnis ullam.",
"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/61/features/SUNT_CUPIDITATE_NISI_QUIA_LABORUM"
}
}
}
}
Response examples (402)
{
"message": "Subscription required."
}
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."
]
}
}