github.com/twilio/twilio-go@v1.20.1/rest/api/v2010/docs/AccountsCallsUserDefinedMessagesApi.md (about) 1 # AccountsCallsUserDefinedMessagesApi 2 3 All URIs are relative to *https://api.twilio.com* 4 5 Method | HTTP request | Description 6 ------------- | ------------- | ------------- 7 [**CreateUserDefinedMessage**](AccountsCallsUserDefinedMessagesApi.md#CreateUserDefinedMessage) | **Post** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/UserDefinedMessages.json | 8 9 10 11 ## CreateUserDefinedMessage 12 13 > ApiV2010UserDefinedMessage CreateUserDefinedMessage(ctx, CallSidoptional) 14 15 16 17 Create a new User Defined Message for the given Call SID. 18 19 ### Path Parameters 20 21 22 Name | Type | Description 23 ------------- | ------------- | ------------- 24 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 25 **CallSid** | **string** | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the User Defined Message is associated with. 26 27 ### Other Parameters 28 29 Other parameters are passed through a pointer to a CreateUserDefinedMessageParams struct 30 31 32 Name | Type | Description 33 ------------- | ------------- | ------------- 34 **PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created User Defined Message. 35 **Content** | **string** | The User Defined Message in the form of URL-encoded JSON string. 36 **IdempotencyKey** | **string** | A unique string value to identify API call. This should be a unique string value per API call and can be a randomly generated. 37 38 ### Return type 39 40 [**ApiV2010UserDefinedMessage**](ApiV2010UserDefinedMessage.md) 41 42 ### Authorization 43 44 [accountSid_authToken](../README.md#accountSid_authToken) 45 46 ### HTTP request headers 47 48 - **Content-Type**: application/x-www-form-urlencoded 49 - **Accept**: application/json 50 51 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) 52 [[Back to Model list]](../README.md#documentation-for-models) 53 [[Back to README]](../README.md) 54