POST api/subscriptionService/subscribeIfNot 🔐
| Header Key | Header Value | 
|---|---|
| Authorization | Bearer Token | 
| Parameter | Type | Description | Required | 
|---|---|---|---|
| topicId | string | The unique ID of the topic to subscribe | 👍 | 
Subscribe to the topic if the user has not. If the user has already subscribed, the API will unsubscribe them from the topic.
{
    "success": true,
    "additionalMessage": "Subscribed",
    "data": "61e23909ece7d77eacfd9c2d" // The topicID
}