v1

latestOpenAPI 3.0.0Apache License Version 2.02026-07-24163274903.6 KB
Application User Service

saveApplicationUser

Create a new application user. Update an application user's details.

post/applicationuser/v1/saveApplicationUser

Headers

authenticationtokenstring required

Secure token for API authentication.

passwordstring required

Password for the Crunchtime Application User.

sitenamestring required

Crunchtime site identifier. (test or production)

useridstring required

User ID for the Crunchtime Application User.

X-B3-TraceIdstring

Optional trace identifier for troubleshooting.

Request body

locationCodestring required

The Code that identifies the Location in Crunchtime.

Example request

{
  "appUserBizIQDetails": [
    {
      "bizIqAccessLevel": "C"
    }
  ],
  "appUserConceptDetails": [
    {
      "activeFlag": "Y",
      "conceptCode": "code"
    }
  ],
  "appUserConsolidationVendorDetails": [
    {
      "activeFlag": "Y",
      "vendorCode": "vendorCode"
    }
  ],
  "appUserCustomerDetails": [
    {
      "activeFlag": "Y",
      "customer": "customer",
      "locationCode": "0000"
    }
  ],
  "appUserDailyAlertDetails": [
    {
      "activeFlag": "Y",
      "emailFormat": "user@crunchtime.com",
      "hierarchyType": "001",
      "locationCode": "0000",
      "logicalName": "crunchtime",
      "reportName": "test"
    }
  ],
  "appUserDepartmentDetails": [
    {
      "activeFlag": "Y",
      "approvalAuthority": "Authority",
      "approvalLimit": 112334212,
      "locationCode": "000000",
      "locationDepartment": "crunchtime"
    }
  ],
  "appUserDetails": {
    "activeFlag": "Y",
    "email": "John@gmail.com",
    "employeeNumber": "AUTO-0000000005",
    "ext": "+12",
    "firstName": "acf",
    "hhUserFlag": "Y",
    "hhUserPassword": "12@hi",
    "language": "English",
    "lastName": "john",
    "newHireFlag": "N",
    "teamworxFlag": "Y",
    "telephone": "222-222-222",
    "userGroup": "usersGroup"
  },
  "appUserFranchiseDetails": [
    {
      "activeFlag": "Y",
      "franchiseCode": "C012"
    }
  ],
  "appUserHierarchyDetails": [
    {
      "activeFlag": "Y",
      "consolidatedDashboardFlag": "N",
      "hierarchyType": "customer",
      "limitExportLocationsFlag": "N",
      "locationCode": "000000",
      "logicalName": "logicName"
    }
  ],
  "appUserLocationDetails": [
    {
      "activeFlag": "Y",
      "locationCode": "000000"
    }
  ],
  "appUserMarketDetails": [
    {
      "activeFlag": "Y",
      "market": "boston"
    }
  ],
  "appUserPasswordDetails": [
    {
      "password": "I@123"
    }
  ],
  "locationCode": "000000"
}

Response

Success

object required