BlueCart · JSON Structure

Bluecart User Create Structure

Payload for creating or updating a user.

Type: object Properties: 9 Required: 3
RestaurantProcurementWholesaleOrderingFood DistributionHospitalityeCommerce

UserCreate is a JSON Structure definition published by BlueCart, describing 9 properties, of which 3 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

firstName lastName email enabled notify role phone reportsTo notificationTypes

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/bluecart/refs/heads/main/json-structure/bluecart-user-create-structure.json",
  "name": "UserCreate",
  "description": "Payload for creating or updating a user.",
  "type": "object",
  "properties": {
    "firstName": {
      "type": "string",
      "example": "Alex"
    },
    "lastName": {
      "type": "string",
      "example": "Morgan"
    },
    "email": {
      "type": "string",
      "example": "alex.morgan@distributor.example"
    },
    "enabled": {
      "type": "boolean",
      "example": true
    },
    "notify": {
      "type": "boolean",
      "example": true
    },
    "role": {
      "type": "string",
      "example": "Admin"
    },
    "phone": {
      "type": "string",
      "example": "+15555550123"
    },
    "reportsTo": {
      "type": "int64",
      "example": 3000
    },
    "notificationTypes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "example": [
        "OrderPlaced",
        "OrderShipped"
      ]
    }
  },
  "required": [
    "firstName",
    "lastName",
    "email"
  ]
}