Body
-
key
string The key to use for the event.
-
description
string The description of the event.
-
type
string The type of event to create.
Values are
unique
orcount
.
PUT
/api/teams/{team}/events/{event}
curl \
-X PUT https://checkmango.com/api/teams/1/events/quam \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"key":"MY_NEW_EVENT","description":"Perferendis excepturi rerum doloremque est ratione officia veritatis.","type":"unique"}'
Request example
{
"key": "MY_NEW_EVENT",
"description": "Perferendis excepturi rerum doloremque est ratione officia veritatis.",
"type": "unique"
}
Response examples (200)
{
"data": {
"id": "ET_TOTAM_OMNIS_ET",
"type": "events",
"attributes": {
"id": 21,
"team_id": 47,
"key": "ET_TOTAM_OMNIS_ET",
"type": "unique",
"description": "Error laboriosam voluptas perspiciatis et. Fuga voluptatem temporibus fugiat in quam aut sapiente. Reprehenderit nihil ea quia tempore assumenda architecto.\n\nCorrupti quis est hic laudantium molestias. Iste at eos blanditiis voluptas. Et aut qui in quia dolorem quod nesciunt occaecati.\n\nMaiores recusandae recusandae doloribus nesciunt et ad sit. Deserunt et enim magni distinctio est omnis. Nihil ducimus ex est ratione. Quo culpa exercitationem est sint asperiores.",
"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/47/events/ET_TOTAM_OMNIS_ET"
}
}
}
}
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."
]
}
}