# \PinApi
All URIs are relative to *https://q.trap.jp/api/v3*
[**create_pin**](PinApi.md#create_pin) | **POST** /messages/{messageId}/pin | ピン留めする
[**get_channel_pins**](PinApi.md#get_channel_pins) | **GET** /channels/{channelId}/pins | チャンネルピンのリストを取得
[**get_pin**](PinApi.md#get_pin) | **GET** /messages/{messageId}/pin | ピン留めを取得
[**remove_pin**](PinApi.md#remove_pin) | **DELETE** /messages/{messageId}/pin | ピン留めを外す
## create_pin
> crate::models::MessagePin create_pin(message_id)
ピン留めする
指定したメッセージをピン留めします。 アーカイブされているチャンネルのメッセージ・存在しないメッセージ・チャンネル当たりの上限数を超えたメッセージのピン留めはできません。
### Parameters
**message_id** | **uuid::Uuid** | メッセージUUID | [required] |
### Return type
[**crate::models::MessagePin**](MessagePin.md)
### Authorization
[OAuth2](../README.md#OAuth2), [bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## get_channel_pins
> Vec<crate::models::Pin> get_channel_pins(channel_id)
チャンネルピンのリストを取得
指定したチャンネルにピン留めされているピンメッセージのリストを取得します。
### Parameters
**channel_id** | **uuid::Uuid** | チャンネルUUID | [required] |
### Return type
[**Vec<crate::models::Pin>**](Pin.md)
### Authorization
[OAuth2](../README.md#OAuth2), [bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## get_pin
> crate::models::MessagePin get_pin(message_id)
ピン留めを取得
指定したメッセージのピン留め情報を取得します。
### Parameters
**message_id** | **uuid::Uuid** | メッセージUUID | [required] |
### Return type
[**crate::models::MessagePin**](MessagePin.md)
### Authorization
[OAuth2](../README.md#OAuth2), [bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## remove_pin
> remove_pin(message_id)
ピン留めを外す
指定したメッセージのピン留めを外します。
### Parameters
**message_id** | **uuid::Uuid** | メッセージUUID | [required] |
### Return type
(empty response body)
### Authorization
[OAuth2](../README.md#OAuth2), [bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)