POST profiles

Register a new profile.

Remarks

Http Status Code: 201 C4M Error Code returned:

  • null

    Profile has been successfully registered.

Request Information

Parameters

NameDescriptionAdditional information
requestDto
DTO with all profiles. Please ComposedProfileRequestDto.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "composedProfileType": 11,
  "certificateSettings": {
    "certificateAuthorities": [
      {
        "certificateId": "00000000-0000-0000-0000-000000000000"
      },
      {
        "certificateId": "00000000-0000-0000-0000-000000000000"
      }
    ],
    "certificateIdentities": [
      {
        "certificateId": null,
        "fromVariable": null
      },
      {
        "certificateId": null,
        "fromVariable": null
      }
    ]
  },
  "description": "Sample profile description.",
  "id": 1,
  "name": "Sample profile"
}
Sample:
{
  "composedProfileType": 10,
  "telephonySettings": {
    "accessPointNames": [
      {
        "accessPointName": null,
        "apnType": null,
        "authenticationType": 0,
        "friendlyName": null,
        "mmsPort": null,
        "mmsProxy": null,
        "mmsServer": null,
        "mobileCountryCode": null,
        "mobileNetworkCode": null,
        "password": null,
        "port": null,
        "proxy": null,
        "server": null,
        "user": null
      },
      {
        "accessPointName": null,
        "apnType": null,
        "authenticationType": 0,
        "friendlyName": null,
        "mmsPort": null,
        "mmsProxy": null,
        "mmsServer": null,
        "mobileCountryCode": null,
        "mobileNetworkCode": null,
        "password": null,
        "port": null,
        "proxy": null,
        "server": null,
        "user": null
      }
    ],
    "defaultAccessPointName": "sample string 1",
    "incomingCallWhitelist": [
      "sample string 1",
      "sample string 2"
    ],
    "outgoingCallWhitelist": [
      "sample string 1",
      "sample string 2"
    ]
  },
  "description": "Sample profile description.",
  "id": 1,
  "name": "Sample profile"
}
Sample:
{
  "composedProfileType": 12,
  "wifiSettings": {
    "wifiNetworks": [
      {
        "autoConnect": false,
        "eap": null,
        "hiddenSsid": false,
        "name": null,
        "passphrase": null,
        "security": 0,
        "ssid": null
      },
      {
        "autoConnect": false,
        "eap": null,
        "hiddenSsid": false,
        "name": null,
        "passphrase": null,
        "security": 0,
        "ssid": null
      }
    ]
  },
  "description": "Sample profile description.",
  "id": 1,
  "name": "Sample profile"
}
Sample:
{
  "composedProfileType": 9,
  "settings": {
    "applications": [
      {
        "configurations": null,
        "installationType": 0,
        "permissions": null,
        "id": null
      },
      {
        "configurations": null,
        "installationType": 0,
        "permissions": null,
        "id": null
      }
    ]
  },
  "description": "Sample profile description.",
  "id": 1,
  "name": "Sample profile"
}
Sample:
{
  "composedProfileType": 8,
  "settings": {
    "applications": [
      {
        "versionId": null,
        "installType": 0,
        "id": 0
      },
      {
        "versionId": null,
        "installType": 0,
        "id": 0
      }
    ],
    "downloadMethod": 0
  },
  "description": "Sample profile description.",
  "id": 1,
  "name": "Sample profile"
}
Sample:
{
  "composedProfileType": 7,
  "settings": {
    "maximumFailedPasswordAttemptsForWipe": 1,
    "passwordExpirationTimeout": 2,
    "passwordHistoryLength": 3,
    "passwordMinimumLength": 4,
    "passwordMinimumLetters": 5,
    "passwordMinimumLowercase": 6,
    "passwordMinimumNonLetter": 7,
    "passwordMinimumNumeric": 8,
    "passwordMinimumSymbols": 9,
    "passwordMinimumUppercase": 10,
    "passwordQuality": 0
  },
  "description": "Sample profile description.",
  "id": 1,
  "name": "Sample profile"
}
Sample:
{
  "composedProfileType": 6,
  "policy": {
    "addUser": true,
    "adjustMasterVolume": true,
    "alwaysOnVpnPackage": {
      "lockdown": true,
      "packageName": "sample string 2"
    },
    "applicationAutoUpdatePolicy": 0,
    "autoTime": true,
    "bluetooth": true,
    "bluetoothConfiguration": true,
    "bluetoothContactSharing": true,
    "camera": true,
    "cellBroadcastsConfiguration": true,
    "credentialsConfiguration": true,
    "dataRoaming": true,
    "debuggingFeatures": true,
    "ensureVerifyApplications": true,
    "factoryReset": true,
    "forceHighAccuracy": true,
    "frpAdminEmails": [
      "sample string 1",
      "sample string 2"
    ],
    "installApplications": true,
    "keyguardFeatures": [
      0,
      0
    ],
    "locationMode": 0,
    "lockScreenInfo": "sample string 16",
    "maximumTimeToLock": 17,
    "microphone": true,
    "mobileNetworksConfiguration": true,
    "modifyAccounts": true,
    "mountPhysicalMedia": true,
    "networkReset": true,
    "outgoingBeam": true,
    "outgoingCalls": true,
    "permissionPolicy": 0,
    "permittedInputMethods": [
      "sample string 1",
      "sample string 2"
    ],
    "playStoreMode": 0,
    "removeUser": true,
    "safeMode": true,
    "screenCapture": true,
    "sendReceiveSms": true,
    "skipFirstUseHints": true,
    "stayOnPluggedModes": [
      0,
      0
    ],
    "systemUpdatePolicy": 0,
    "tetheringConfiguration": true,
    "uninstallApplications": true,
    "untrustedApplicationsPolicy": 0,
    "usbFileTransfer": true,
    "vpnConfiguration": true,
    "wifiConfiguration": true,
    "windowedUpdateEndTime": 35,
    "windowedUpdateStartTime": 36
  },
  "description": "Sample profile description.",
  "id": 1,
  "name": "Sample profile"
}
Sample:
{
  "applicationUsage": {
    "storageTime": 1,
    "enabled": true,
    "monitoringInterval": 1,
    "synchronizationInterval": 1
  },
  "battery": {
    "enabled": true,
    "monitoringInterval": 1,
    "storageTime": 1,
    "synchronizationInterval": 1
  },
  "composedProfileType": 0,
  "dataUsage": {
    "beginOfCycle": 1,
    "enabled": true,
    "monitoringInterval": 1,
    "storageTime": 1,
    "synchronizationInterval": 1
  },
  "location": {
    "enabled": true,
    "monitoringInterval": 1,
    "storageTime": 1,
    "synchronizationInterval": 1
  },
  "locationHistory": {
    "monitoringQuality": 0,
    "storageTime": 1,
    "enabled": true,
    "monitoringInterval": 1,
    "synchronizationInterval": 1
  },
  "memory": {
    "enabled": true,
    "monitoringInterval": 1,
    "storageTime": 1,
    "synchronizationInterval": 1
  },
  "description": "Sample profile description.",
  "id": 1,
  "name": "Sample profile"
}
Sample:
{
  "blacklist": {
    "applications": [
      {
        "alias": "My Android App",
        "packageName": "com.example.myandroidapp"
      },
      {
        "alias": "My Android App",
        "packageName": "com.example.myandroidapp"
      }
    ]
  },
  "composedProfileType": 3,
  "description": "Sample profile description.",
  "id": 1,
  "name": "Sample profile"
}
Sample:
null
Sample:
{
  "composedProfileType": 1,
  "location": {
    "enabled": true,
    "storageTime": 1,
    "synchronizationInterval": 1
  },
  "locationHistory": {
    "enabled": true,
    "monitoringQuality": 0,
    "storageTime": 1,
    "synchronizationInterval": 1
  },
  "battery": {
    "enabled": true,
    "storageTime": 1,
    "synchronizationInterval": 1
  },
  "description": "Sample profile description.",
  "id": 1,
  "name": "Sample profile"
}
Sample:
{
  "composedProfileType": 4,
  "launcherSettings": {
    "blockStatusBar": true,
    "enabled": true,
    "horizontalBackgroundImage": {
      "image": "sample string 1",
      "imageBase64": "sample string 1",
      "imageUrl": "sample string 2",
      "scaleType": 0
    },
    "lockTaskAllowed": true,
    "password": "sample string 4",
    "passwordType": 0,
    "titleText": "sample string 5",
    "verticalBackgroundImage": {
      "image": "sample string 1",
      "imageBase64": "sample string 1",
      "imageUrl": "sample string 2",
      "scaleType": 0
    },
    "whitelist": [
      {
        "alias": null,
        "executionRestrictions": null,
        "packageName": null,
        "visible": false
      },
      {
        "alias": null,
        "executionRestrictions": null,
        "packageName": null,
        "visible": false
      }
    ]
  },
  "description": "Sample profile description.",
  "id": 1,
  "name": "Sample profile"
}
Sample:
{
  "composedProfileType": 5,
  "policy": {
    "airplaneMode": true,
    "bluetooth": true,
    "camera": true,
    "clipboard": true,
    "factoryReset": true,
    "homeKey": true,
    "microphone": true,
    "nfc": true,
    "powerOff": true,
    "safeMode": true,
    "screenCapture": true,
    "settingsChanges": true,
    "statusBarExpansion": true,
    "taskManager": true,
    "wifi": true
  },
  "description": "Sample profile description.",
  "id": 1,
  "name": "Sample profile"
}
Sample:
{
  "applicationSettings": {
    "applications": [
      {
        "configurations": null,
        "packageName": null
      },
      {
        "configurations": null,
        "packageName": null
      }
    ]
  },
  "composedProfileType": 2,
  "policy": {
    "airplaneMode": true,
    "audioRecord": true,
    "bluetooth": true,
    "camera": true,
    "clipboard": true,
    "clipboardShare": true,
    "factoryReset": true,
    "headphone": true,
    "homeKey": true,
    "microphone": true,
    "navigationBar": true,
    "nfc": true,
    "otaUpgrade": true,
    "powerOff": true,
    "safeMode": true,
    "screenCapture": true,
    "settingsChanges": true,
    "softwareInstallation": true,
    "softwareUninstallation": true,
    "statusBar": true,
    "statusBarExpansion": true,
    "sVoice": true,
    "taskManager": true,
    "videoRecord": true,
    "wifi": true
  },
  "description": "Sample profile description.",
  "id": 1,
  "name": "Sample profile"
}

Response Information

Operation result.

Response body formats

application/json, text/json

Sample:
{
  "id": 1
}
Sample:
{
  "versionId": 1,
  "installType": 0,
  "id": 1
}