### Security: $ref Source: https://connhex.com/api/core/latest/http/api.json Security scheme: $ref ```markdown ## Security: $ref **Description:** Security scheme: $ref **Type:** unknown ``` -------------------------------- ### Schema: SenMLRecord Source: https://connhex.com/api/core/latest/http/api.json Schema definition for SenMLRecord ```markdown ## Schema: SenMLRecord Schema definition for SenMLRecord **Type:** object - **bn** (string): Base Name - **bt** (number (double)): Base Time - **bu** (number (double)): Base Unit - **bv** (number (double)): Base Value - **n** (string): Name - **u** (string): Unit - **v** (number (double)): Value - **vs** (string): String Value - **vb** (boolean): Boolean Value - **vd** (string): Data Value - **s** (number (double)): Value Sum - **t** (number (double)): Time ``` -------------------------------- ### POST /iot/http/channels/{id}/messages/{subtopic} Source: https://connhex.com/api/core/latest/http/api.json Sends message to a communication channel. Required Permission: - Resource: ```core:channels:{id}``` - Action: ```core:channels:publish``` ```markdown ### Parameters - **id** (string (uuid), path, required): Unique connectable's channel identifier. - **subtopic** (string, path, optional): Message subtopic. Follow [these](https://connhex.com/docs/edge/services#mqtt-topics-to-nats-subjects-mapping) instructions to target a specific custom service runnig on an edge device. ### Request Body **Content-Type:** application/json - Array of SenMLRecord ### Responses #### 202 - Message is accepted for processing. Empty response body #### 400 - Bad request. Bad request. #### 401 - Unauthorized. Unauthorized. #### 500 - response ### Example Usage ```bash curl -X POST "https://apis./iot/http/channels/{id}/messages/{subtopic}" \ -H "Content-Type: application/json" \ -d '{ "example": "data" }' ``` ``` -------------------------------- ### Schema: SenMLArray Source: https://connhex.com/api/core/latest/http/api.json Schema definition for SenMLArray ```markdown ## Schema: SenMLArray Schema definition for SenMLArray **Type:** array - Array of SenMLRecord ``` -------------------------------- ### API Overview: Connhex http Source: https://connhex.com/api/core/latest/http/api.json OpenAPI specification version 1.5.0 ```yaml # Connhex http # Version: 1.5.0 OpenAPI specification # Base URL: https://apis. ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.