Skip to main content

Delete a Message

DELETE 

//localhost:11337/chat-svc/message/:messageId

Delete a specific message from a chat thread by its ID

Request

Path Parameters

    messageId stringrequired

    Message ID

Responses

Message successfully deleted

Schema
    property name*any

Authorization: Authorization

name: Authorizationtype: apiKeydescription: Type "Bearer" followed by a space and token acquired from the User Svc Login endpoint.in: header
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Delete, "//localhost:11337/chat-svc/message/:messageId");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "<Authorization>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
//localhost:11337
Auth
Parameters
— pathrequired
ResponseClear

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