Create Committee

This endpoint allows an admin user to create a new committee with a specified name.

POST/Committee/CreateCommittee

Authorization

AuthorizationRequiredBearer <token>

Authorization header using the Bearer scheme. Example: "Bearer {token}"

In: header

Query Parameters

Namestring

The name of the committee to be created. This parameter is required and must not be empty. If the name is already taken, an error will be returned.

curl -X POST "https://example.com/Committee/CreateCommittee?Name=%3Cstring%3E" \
  -H "Authorization: Bearer <token>"

Returns the created committee if successful.

{
  "name": "string"
}