---
title: "Creates or updates a user"
method: POST
path: "/v1/Users/portal"
tags: ["Users"]
---

# Creates or updates a user

`POST /v1/Users/portal`

The JSON properties for this endpoint do not match what is show in the Request body.  Please use
the Sample Request below for the accurate property names.

Sample Request:

    [POST] /v1/Users/Portal
    {
        "portal_id": 1234, // can be null or when creating new user
        "name_first": "Thomas",
        "name_last": "Johnson",
        "name_middle": "Lee",
        "name_greeting": "Tom",
        "name_prefix": "Mr",
        "name_suffix": "Jr"
    }

## Request body

- AdaptekApiApplicationUsersCommandsUpsertUserUpsertUserCommand
  - `portal_id` integer, nullable
  - `name_first` string, nullable
  - `name_last` string, nullable
  - `name_middle` string, nullable
  - `name_greeting` string, nullable
  - `name_prefix` string, nullable
  - `name_suffix` string, nullable

## Response `200`

user successfully updated

- integer

## Other responses

- `201` — user successfully created
- `400` — invalid data
- `404` — user not found

---

[API](https://skmtc.net/adaptek/apis/adaptek-api.md) · [All operations](https://skmtc.net/adaptek/apis/adaptek-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/adaptek/adaptek-api/revisions/e41a7579fb3f/schema)
