github.com/twilio/twilio-go@v1.20.1/rest/video/v1/docs/RoomsRecordingRulesApi.md (about)

     1  # RoomsRecordingRulesApi
     2  
     3  All URIs are relative to *https://video.twilio.com*
     4  
     5  Method | HTTP request | Description
     6  ------------- | ------------- | -------------
     7  [**FetchRoomRecordingRule**](RoomsRecordingRulesApi.md#FetchRoomRecordingRule) | **Get** /v1/Rooms/{RoomSid}/RecordingRules | 
     8  [**UpdateRoomRecordingRule**](RoomsRecordingRulesApi.md#UpdateRoomRecordingRule) | **Post** /v1/Rooms/{RoomSid}/RecordingRules | 
     9  
    10  
    11  
    12  ## FetchRoomRecordingRule
    13  
    14  > VideoV1RoomRecordingRule FetchRoomRecordingRule(ctx, RoomSid)
    15  
    16  
    17  
    18  Returns a list of Recording Rules for the Room.
    19  
    20  ### Path Parameters
    21  
    22  
    23  Name | Type | Description
    24  ------------- | ------------- | -------------
    25  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
    26  **RoomSid** | **string** | The SID of the Room resource where the recording rules to fetch apply.
    27  
    28  ### Other Parameters
    29  
    30  Other parameters are passed through a pointer to a FetchRoomRecordingRuleParams struct
    31  
    32  
    33  Name | Type | Description
    34  ------------- | ------------- | -------------
    35  
    36  ### Return type
    37  
    38  [**VideoV1RoomRecordingRule**](VideoV1RoomRecordingRule.md)
    39  
    40  ### Authorization
    41  
    42  [accountSid_authToken](../README.md#accountSid_authToken)
    43  
    44  ### HTTP request headers
    45  
    46  - **Content-Type**: Not defined
    47  - **Accept**: application/json
    48  
    49  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
    50  [[Back to Model list]](../README.md#documentation-for-models)
    51  [[Back to README]](../README.md)
    52  
    53  
    54  ## UpdateRoomRecordingRule
    55  
    56  > VideoV1RoomRecordingRule UpdateRoomRecordingRule(ctx, RoomSidoptional)
    57  
    58  
    59  
    60  Update the Recording Rules for the Room
    61  
    62  ### Path Parameters
    63  
    64  
    65  Name | Type | Description
    66  ------------- | ------------- | -------------
    67  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
    68  **RoomSid** | **string** | The SID of the Room resource where the recording rules to update apply.
    69  
    70  ### Other Parameters
    71  
    72  Other parameters are passed through a pointer to a UpdateRoomRecordingRuleParams struct
    73  
    74  
    75  Name | Type | Description
    76  ------------- | ------------- | -------------
    77  **Rules** | [**interface{}**](interface{}.md) | A JSON-encoded array of recording rules.
    78  
    79  ### Return type
    80  
    81  [**VideoV1RoomRecordingRule**](VideoV1RoomRecordingRule.md)
    82  
    83  ### Authorization
    84  
    85  [accountSid_authToken](../README.md#accountSid_authToken)
    86  
    87  ### HTTP request headers
    88  
    89  - **Content-Type**: application/x-www-form-urlencoded
    90  - **Accept**: application/json
    91  
    92  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
    93  [[Back to Model list]](../README.md#documentation-for-models)
    94  [[Back to README]](../README.md)
    95