Skip to main content

Add an admin

POST 

https://api.botsubscription.com/v1/bot:bot_id/:api_key/admins

Add a new admin to the bot.

Request

Responses

The admin has been successfully added.
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.botsubscription.com");
request.Headers.Add("Accept", "application/json");
var content = new StringContent(string.Empty);
content.Headers.ContentType = new MediaTypeHeaderValue("application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://api.botsubscription.com
Parameters
— pathrequired
— pathrequired
Body required
{
  "admin_id": "string",
  "admin_level": 0
}
ResponseClear

Click the Send API Request button above and see the response here!