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

     1  # TrustProductsChannelEndpointAssignmentsApi
     2  
     3  All URIs are relative to *https://trusthub.twilio.com*
     4  
     5  Method | HTTP request | Description
     6  ------------- | ------------- | -------------
     7  [**CreateTrustProductChannelEndpointAssignment**](TrustProductsChannelEndpointAssignmentsApi.md#CreateTrustProductChannelEndpointAssignment) | **Post** /v1/TrustProducts/{TrustProductSid}/ChannelEndpointAssignments | 
     8  [**DeleteTrustProductChannelEndpointAssignment**](TrustProductsChannelEndpointAssignmentsApi.md#DeleteTrustProductChannelEndpointAssignment) | **Delete** /v1/TrustProducts/{TrustProductSid}/ChannelEndpointAssignments/{Sid} | 
     9  [**FetchTrustProductChannelEndpointAssignment**](TrustProductsChannelEndpointAssignmentsApi.md#FetchTrustProductChannelEndpointAssignment) | **Get** /v1/TrustProducts/{TrustProductSid}/ChannelEndpointAssignments/{Sid} | 
    10  [**ListTrustProductChannelEndpointAssignment**](TrustProductsChannelEndpointAssignmentsApi.md#ListTrustProductChannelEndpointAssignment) | **Get** /v1/TrustProducts/{TrustProductSid}/ChannelEndpointAssignments | 
    11  
    12  
    13  
    14  ## CreateTrustProductChannelEndpointAssignment
    15  
    16  > TrusthubV1TrustProductChannelEndpointAssignment CreateTrustProductChannelEndpointAssignment(ctx, TrustProductSidoptional)
    17  
    18  
    19  
    20  Create a new Assigned Item.
    21  
    22  ### Path Parameters
    23  
    24  
    25  Name | Type | Description
    26  ------------- | ------------- | -------------
    27  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
    28  **TrustProductSid** | **string** | The unique string that we created to identify the CustomerProfile resource.
    29  
    30  ### Other Parameters
    31  
    32  Other parameters are passed through a pointer to a CreateTrustProductChannelEndpointAssignmentParams struct
    33  
    34  
    35  Name | Type | Description
    36  ------------- | ------------- | -------------
    37  **ChannelEndpointType** | **string** | The type of channel endpoint. eg: phone-number
    38  **ChannelEndpointSid** | **string** | The SID of an channel endpoint
    39  
    40  ### Return type
    41  
    42  [**TrusthubV1TrustProductChannelEndpointAssignment**](TrusthubV1TrustProductChannelEndpointAssignment.md)
    43  
    44  ### Authorization
    45  
    46  [accountSid_authToken](../README.md#accountSid_authToken)
    47  
    48  ### HTTP request headers
    49  
    50  - **Content-Type**: application/x-www-form-urlencoded
    51  - **Accept**: application/json
    52  
    53  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
    54  [[Back to Model list]](../README.md#documentation-for-models)
    55  [[Back to README]](../README.md)
    56  
    57  
    58  ## DeleteTrustProductChannelEndpointAssignment
    59  
    60  > DeleteTrustProductChannelEndpointAssignment(ctx, TrustProductSidSid)
    61  
    62  
    63  
    64  Remove an Assignment Item Instance.
    65  
    66  ### Path Parameters
    67  
    68  
    69  Name | Type | Description
    70  ------------- | ------------- | -------------
    71  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
    72  **TrustProductSid** | **string** | The unique string that we created to identify the CustomerProfile resource.
    73  **Sid** | **string** | The unique string that we created to identify the resource.
    74  
    75  ### Other Parameters
    76  
    77  Other parameters are passed through a pointer to a DeleteTrustProductChannelEndpointAssignmentParams struct
    78  
    79  
    80  Name | Type | Description
    81  ------------- | ------------- | -------------
    82  
    83  ### Return type
    84  
    85   (empty response body)
    86  
    87  ### Authorization
    88  
    89  [accountSid_authToken](../README.md#accountSid_authToken)
    90  
    91  ### HTTP request headers
    92  
    93  - **Content-Type**: Not defined
    94  - **Accept**: Not defined
    95  
    96  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
    97  [[Back to Model list]](../README.md#documentation-for-models)
    98  [[Back to README]](../README.md)
    99  
   100  
   101  ## FetchTrustProductChannelEndpointAssignment
   102  
   103  > TrusthubV1TrustProductChannelEndpointAssignment FetchTrustProductChannelEndpointAssignment(ctx, TrustProductSidSid)
   104  
   105  
   106  
   107  Fetch specific Assigned Item Instance.
   108  
   109  ### Path Parameters
   110  
   111  
   112  Name | Type | Description
   113  ------------- | ------------- | -------------
   114  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   115  **TrustProductSid** | **string** | The unique string that we created to identify the CustomerProfile resource.
   116  **Sid** | **string** | The unique string that we created to identify the resource.
   117  
   118  ### Other Parameters
   119  
   120  Other parameters are passed through a pointer to a FetchTrustProductChannelEndpointAssignmentParams struct
   121  
   122  
   123  Name | Type | Description
   124  ------------- | ------------- | -------------
   125  
   126  ### Return type
   127  
   128  [**TrusthubV1TrustProductChannelEndpointAssignment**](TrusthubV1TrustProductChannelEndpointAssignment.md)
   129  
   130  ### Authorization
   131  
   132  [accountSid_authToken](../README.md#accountSid_authToken)
   133  
   134  ### HTTP request headers
   135  
   136  - **Content-Type**: Not defined
   137  - **Accept**: application/json
   138  
   139  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
   140  [[Back to Model list]](../README.md#documentation-for-models)
   141  [[Back to README]](../README.md)
   142  
   143  
   144  ## ListTrustProductChannelEndpointAssignment
   145  
   146  > []TrusthubV1TrustProductChannelEndpointAssignment ListTrustProductChannelEndpointAssignment(ctx, TrustProductSidoptional)
   147  
   148  
   149  
   150  Retrieve a list of all Assigned Items for an account.
   151  
   152  ### Path Parameters
   153  
   154  
   155  Name | Type | Description
   156  ------------- | ------------- | -------------
   157  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   158  **TrustProductSid** | **string** | The unique string that we created to identify the CustomerProfile resource.
   159  
   160  ### Other Parameters
   161  
   162  Other parameters are passed through a pointer to a ListTrustProductChannelEndpointAssignmentParams struct
   163  
   164  
   165  Name | Type | Description
   166  ------------- | ------------- | -------------
   167  **ChannelEndpointSid** | **string** | The SID of an channel endpoint
   168  **ChannelEndpointSids** | **string** | comma separated list of channel endpoint sids
   169  **PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000.
   170  **Limit** | **int** | Max number of records to return.
   171  
   172  ### Return type
   173  
   174  [**[]TrusthubV1TrustProductChannelEndpointAssignment**](TrusthubV1TrustProductChannelEndpointAssignment.md)
   175  
   176  ### Authorization
   177  
   178  [accountSid_authToken](../README.md#accountSid_authToken)
   179  
   180  ### HTTP request headers
   181  
   182  - **Content-Type**: Not defined
   183  - **Accept**: application/json
   184  
   185  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
   186  [[Back to Model list]](../README.md#documentation-for-models)
   187  [[Back to README]](../README.md)
   188