diff --git a/things/api/http/requests.go b/things/api/http/requests.go index 0546bf8e..5ce30759 100644 --- a/things/api/http/requests.go +++ b/things/api/http/requests.go @@ -366,8 +366,8 @@ func (req unassignUserGroupsRequest) validate() error { type connectChannelThingRequest struct { token string - ThingID string - ChannelID string + ThingID string `json:"thing_id,omitempty"` + ChannelID string `json:"channel_id,omitempty"` } func (req *connectChannelThingRequest) validate() error {