All URIs are relative to https://api-APP_ID.sendbird.com
Method | HTTP request | Description |
---|---|---|
v3ChannelTypeChannelUrlMessagesMessageIdPinPost | POST /v3/{channel_type}/{channel_url}/messages/{message_id}/pin | Add a new pin |
SendBirdChannelResponse v3ChannelTypeChannelUrlMessagesMessageIdPinPost()
import { Sendbird } from 'sendbird-platform-sdk';
import * as fs from 'fs';
const configuration = Sendbird.createConfiguration();
const apiInstance = new Sendbird.PinAMessageApi(configuration);
let body:Sendbird.PinAMessageApiV3ChannelTypeChannelUrlMessagesMessageIdPinPostRequest = {
// string
channelType: "channel_type_example",
// string
channelUrl: "channel_url_example",
// number
messageId: 1,
// string (optional)
apiToken: "Api-Token_example",
};
apiInstance.v3ChannelTypeChannelUrlMessagesMessageIdPinPost(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
channelType | [string] | defaults to undefined | |
channelUrl | [string] | defaults to undefined | |
messageId | [number] | defaults to undefined | |
apiToken | [string] | (optional) defaults to undefined |
SendBirdChannelResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]