SweetConnect LogoSweetConnect
ApiUsers

Create new user

Create new user

POST
/v1/users
AuthorizationBearer <token>

In: header

Request Body

application/json

firstName*string
lastName*string
email*string
role*string
Value in"admin" | "manufacturer-admin" | "manufacturer-user" | "producer-admin" | "producer-user" | "representative"
marketplaceRole?string
Value in"sweetconnect" | "buyer" | "seller" | "technician"
password?string
attributes?

Response Body

application/json

curl -X POST "https://my.sweetconnect.io/api/auth/v1/users" \  -H "Content-Type: application/json" \  -d '{    "firstName": "string",    "lastName": "string",    "email": "string",    "role": "admin"  }'
{
  "data": {
    "users": [
      {
        "id": "string",
        "firstName": "string",
        "lastName": "string",
        "email": "string",
        "username": "string",
        "activated": true,
        "role": "admin",
        "marketplaceRole": "sweetconnect",
        "additionalProperties": "string"
      }
    ]
  },
  "meta": {
    "responseTime": 0,
    "count": 0
  }
}
Empty
Empty