Update Club Tags
POST /clubs/{clubID}/tags : Updating a clubs tags
Note: Only a club owner or club managers can update club tags
{
"Tags": []string
}
Example Request
This is a protected route, a valid JWT is required in the header field
Header
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1OTU4MjQyNzUsImlhdCI6IjIwMjAtMDctMjdUMDA6MjY6MTUuNzg5NTg0Mi0wNDowMCIsInN1YiI6ImNocmlzIn0.5US2_ITKcfgkpEbfsR-gxXbGPFY6XsgJPcGA5qaBD1M
Body
All previous tags will be replaced with the new updated list of tags
Note: Tag IDs are available through GET /tags
{
"Tags": ["Arts", "Mathematics", "Physics", "Cooking"]
}
Note: Repeated tags will only count once
Possible Responses
Immediate Success
{
"code": 1,
"message": "tags updated",
"data": {}
}
Failure
{
"code": -1,
"message": "Forbidden",
"data": {}
}
{
"code": -1,
"message": "club not found",
"data": {}
}