From 0f2067afb7ed6e07d507520bc489882aaf4a9566 Mon Sep 17 00:00:00 2001 From: Hugues Malphettes Date: Sat, 1 Feb 2020 10:31:36 +0800 Subject: [PATCH] Fix CreateSSHKey --- default_api.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/default_api.go b/default_api.go index 6784974..b87343a 100644 --- a/default_api.go +++ b/default_api.go @@ -8453,7 +8453,9 @@ func (a *DefaultApiService) CreateSSHKey(localVarOptionals map[string]interface{ localVarQueryParams.Add("user", parameterToString(localVarTempParam, "")) } if localVarTempParam, localVarOk := localVarOptionals["text"].(string); localVarOk { - localVarFormParams.Add("text", parameterToString(localVarTempParam, "")) + localVarPostBody = map[string]interface{}{ + "text": localVarTempParam, + } } // to determine the Content-Type header