> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.nukio.mx/llms.txt.
> For full documentation content, see https://developers.nukio.mx/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.nukio.mx/_mcp/server.

# updateUser

POST https://app.nukio.mx/api/v1/user/updateuser/authorization
Content-Type: application/json

Reference: https://developers.nukio.mx/nukio-api/user/update-user

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /api/v1/user/updateuser/authorization:
    post:
      operationId: update-user
      summary: updateUser
      tags:
        - subpackage_user
      parameters:
        - name: authorization
          in: header
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/User_updateUser_Response_200'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                userid:
                  type: string
                contactname:
                  type: string
                contactemail:
                  type: string
              required:
                - userid
                - contactname
                - contactemail
servers:
  - url: https://app.nukio.mx
components:
  schemas:
    User_updateUser_Response_200:
      type: object
      properties:
        userID:
          type: string
        success:
          type: string
        isActive:
          type: string
        contactName:
          type: string
        displayName:
          description: Any type
        status_code:
          type: string
        contactEmail:
          type: string
          format: email
        displayDiscription:
          type: string
      required:
        - userID
        - success
        - isActive
        - contactName
        - status_code
        - contactEmail
        - displayDiscription
      title: User_updateUser_Response_200
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: authorization

```

## SDK Code Examples

```python User_updateUser_example
import requests

url = "https://app.nukio.mx/api/v1/user/updateuser/authorization"

payload = {
    "userid": "userID",
    "contactname": "contactName",
    "contactemail": "contactEmail"
}
headers = {
    "authorization": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript User_updateUser_example
const url = 'https://app.nukio.mx/api/v1/user/updateuser/authorization';
const options = {
  method: 'POST',
  headers: {authorization: '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"userid":"userID","contactname":"contactName","contactemail":"contactEmail"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go User_updateUser_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://app.nukio.mx/api/v1/user/updateuser/authorization"

	payload := strings.NewReader("{\n  \"userid\": \"userID\",\n  \"contactname\": \"contactName\",\n  \"contactemail\": \"contactEmail\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("authorization", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby User_updateUser_example
require 'uri'
require 'net/http'

url = URI("https://app.nukio.mx/api/v1/user/updateuser/authorization")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["authorization"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"userid\": \"userID\",\n  \"contactname\": \"contactName\",\n  \"contactemail\": \"contactEmail\"\n}"

response = http.request(request)
puts response.read_body
```

```java User_updateUser_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://app.nukio.mx/api/v1/user/updateuser/authorization")
  .header("authorization", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"userid\": \"userID\",\n  \"contactname\": \"contactName\",\n  \"contactemail\": \"contactEmail\"\n}")
  .asString();
```

```php User_updateUser_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://app.nukio.mx/api/v1/user/updateuser/authorization', [
  'body' => '{
  "userid": "userID",
  "contactname": "contactName",
  "contactemail": "contactEmail"
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'authorization' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp User_updateUser_example
using RestSharp;

var client = new RestClient("https://app.nukio.mx/api/v1/user/updateuser/authorization");
var request = new RestRequest(Method.POST);
request.AddHeader("authorization", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"userid\": \"userID\",\n  \"contactname\": \"contactName\",\n  \"contactemail\": \"contactEmail\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift User_updateUser_example
import Foundation

let headers = [
  "authorization": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "userid": "userID",
  "contactname": "contactName",
  "contactemail": "contactEmail"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://app.nukio.mx/api/v1/user/updateuser/authorization")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```