github.com/twilio/twilio-go@v1.20.1/rest/sync/v1/docs/ServicesStreamsMessagesApi.md (about) 1 # ServicesStreamsMessagesApi 2 3 All URIs are relative to *https://sync.twilio.com* 4 5 Method | HTTP request | Description 6 ------------- | ------------- | ------------- 7 [**CreateStreamMessage**](ServicesStreamsMessagesApi.md#CreateStreamMessage) | **Post** /v1/Services/{ServiceSid}/Streams/{StreamSid}/Messages | 8 9 10 11 ## CreateStreamMessage 12 13 > SyncV1StreamMessage CreateStreamMessage(ctx, ServiceSidStreamSidoptional) 14 15 16 17 Create a new Stream Message. 18 19 ### Path Parameters 20 21 22 Name | Type | Description 23 ------------- | ------------- | ------------- 24 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 25 **ServiceSid** | **string** | The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the new Stream Message in. 26 **StreamSid** | **string** | The SID of the Sync Stream to create the new Stream Message resource for. 27 28 ### Other Parameters 29 30 Other parameters are passed through a pointer to a CreateStreamMessageParams struct 31 32 33 Name | Type | Description 34 ------------- | ------------- | ------------- 35 **Data** | [**interface{}**](interface{}.md) | A JSON string that represents an arbitrary, schema-less object that makes up the Stream Message body. Can be up to 4 KiB in length. 36 37 ### Return type 38 39 [**SyncV1StreamMessage**](SyncV1StreamMessage.md) 40 41 ### Authorization 42 43 [accountSid_authToken](../README.md#accountSid_authToken) 44 45 ### HTTP request headers 46 47 - **Content-Type**: application/x-www-form-urlencoded 48 - **Accept**: application/json 49 50 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) 51 [[Back to Model list]](../README.md#documentation-for-models) 52 [[Back to README]](../README.md) 53