Leave Club

POST /clubs/{clubID}/leave : Leaving a club

Note: Only club managers can leave a club. If you are a club owner and want to leave the club, you must appoint a new owner. To promote a new owner see Promote New Club Owner

Example Request

This is a protected route, a valid JWT is required in the header field

Header

Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1OTU4MjQyNzUsImlhdCI6IjIwMjAtMDctMjdUMDA6MjY6MTUuNzg5NTg0Mi0wNDowMCIsInN1YiI6ImNocmlzIn0.5US2_ITKcfgkpEbfsR-gxXbGPFY6XsgJPcGA5qaBD1M

Possible Responses

Immediate Success

{
"code": 1,
"message": "successfully left club",
"data": {}
}

Failure

{
"code": -1,
"message": "club not found",
"data": {}
}
{
"code": -1,
"message": "user not found",
"data": {}
}
{
"code": -1,
"message": "Forbidden",
"data": {}
}
Last updated on by Chris Lim