Skip to main content

sources_all_set_icon_create

POST 

/api/v3//sources/all/:slug/set_icon/

Set source icon

Request

Path Parameters

    slug stringrequired

Body

    file binary
    clear boolean
    Default value: false

Responses

Success

Authorization: http

name: authentiktype: httpscheme: bearer
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "/api/v3/sources/all/:slug/set_icon/");
request.Headers.Add("Authorization", "Bearer <TOKEN>");
var content = new StringContent(string.Empty);
content.Headers.ContentType = new MediaTypeHeaderValue("multipart/form-data");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
/api/v3
Auth
Parameters
— pathrequired
Body
file