Policy changes

Read an Android policy's full configuration and change its settings, apps, Wi-Fi networks and the rest of it, create a policy from scratch or as a copy of another, or roll a policy back to an earlier revision. Every change is reviewed before it is applied.

How it works

Every change takes two steps. First you propose it: the API records a proposal and returns its change list, with each setting's current and new value, the impact and when the proposal expires. Nothing changes on the policy yet. Then, after the person responsible has reviewed the change list, you apply a NORMAL proposal by its proposalId, and a person approves a HIGH proposal in the Nomid portal.

Only the API key that made a proposal can read or apply it. For an OAuth connection, only the same connection and user can. A person who approves a HIGH impact proposal in the Nomid portal is the one exception: see Impact and approval. A proposal expires 24 hours after it is made; the expiresAt field gives the exact time.

Only Android policies can be changed this way. Policies managed by Nomid cannot. Creating a policy also requires the company to be connected to Android Enterprise.

Requirements

  • An API key with the POLICIES_WRITE permission (Policy changes), combined with POLICIES_READ. Only a portal user with permission to edit policies can create a key with POLICIES_WRITE. Required by the POST endpoints and the MCP policy change tools.
  • The company setting Policy changes, under AI agent access in the portal, must be turned on. New companies start with it on, and an administrator can turn it off. While it is off, every proposal and apply call returns 403. Reading settings, the policy document, revisions and proposals needs POLICIES_READ only.
  • MCP clients that connect with Sign in with Nomid instead of an API key need the mcp:policies:write scope.

Endpoints

All paths are relative to the API base URL and need the X-API-Key header. Request bodies are JSON.

MethodEndpointDescription
GET/policies/{policyId}/settingsThe policy's editable settings, each with its current value, allowed values, group and whether it is flagged high impact, which makes changing it HIGH from 1 device. Also returns the policy version, deviceCount, whether the policy is editable, and its apps, each with packageName, name, source, installType and managedByNomid, which is true for the apps that cannot be changed here.
GET/policies/{policyId}/documentThe policy's full configuration as JSON in value, or only the part at path, a JSON Pointer such as /openNetworkConfigurations. An app is addressed by its package name, as in /apps/com.example.app. Secrets come back as a marker, an object with redacted set to true, and so does every value of an app's managed configuration. Without path, apps are summarized with packageName, name, source, installType and managedConfigurationKeys. Also returns policyId, displayName, version, deviceCount, editable and lockedFields, the fields the edits endpoint refuses, each with the reason. A part longer than 30000 characters returns fieldSizes instead of value: read a narrower path. Returns 422 when path names an app the policy does not have.
GET/policies/{policyId}/revisionsThe policy's saved revisions, newest first, with when and by whom each was saved. limit is optional, from 1 to 100, default 20.
GET/policy-proposals/{proposalId}A proposal made by this key, with its change list and status: PENDING, EXECUTING, SUCCEEDED, FAILED, UNCONFIRMED or EXPIRED.
POST/policies/{policyId}/changesPropose setting changes to an existing policy. Returns 201 with the proposal.
POST/policies/{policyId}/app-changesPropose adding apps to an existing policy, removing them or changing how they are installed. Returns 201 with the proposal.
POST/policies/{policyId}/editsPropose changes to any editable part of an existing policy, as JSON Pointer edits of its document. Returns 201 with the proposal.
POST/policies/{policyId}/home-screenPropose a change to the policy's home screen: the device's own home screen, the Nomid launcher or Nomid Kiosk, with the launcher's dock and the apps it shows. Returns 201 with the proposal.
POST/policies/{policyId}/detailsPropose a change to the policy's description, tags or group. Devices are not affected, so it is never HIGH impact. Returns 201 with the proposal.
POST/policiesPropose a new policy, with optional setting changes. With fromPolicyId it is a copy of that policy, and without changes a duplicate. Without fromPolicyId it starts from Nomid's defaults. Returns 201 with the proposal.
POST/policies/{policyId}/rollbacksPropose restoring the policy to an earlier revision. Returns 201 with the proposal.
POST/policy-proposals/{proposalId}/applyApply a pending proposal. Returns 200 with the proposal and its result: policyId, displayName, version and a portal link.

Request bodies

Change settings

FieldRequiredDescription
changesYesArray of objects with setting (a setting ID) and value (one of its allowed values). Each setting at most once. Values are not case-sensitive.

Change apps

The body has one field, changes: an array of 1 to 20 objects with the fields below. Each app and each web address at most once. The settings endpoint lists the policy's apps.

FieldRequiredDescription
actionYesADD adds a Google Play app, or a published Nomid Store app, by packageName. ADD_WEB_APP adds a Nomid Secure Web App that opens url in Nomid's secure browser on the device. REMOVE takes an app out of the policy, and devices uninstall it. SET_INSTALL_TYPE changes how an app already in the policy is installed.
packageNameDepends on actionFor ADD, REMOVE and SET_INSTALL_TYPE. The Android package name, such as com.example.app; a Play Store link to the app also works. To remove a web app, use the packageName the settings endpoint shows for it (secure.browser. followed by an ID). An unknown package is refused.
urlDepends on actionFor ADD_WEB_APP only. The http or https address the web app opens. An address without a scheme, such as example.com/kiosk, is read as https.
titleNoFor ADD_WEB_APP only. The app's name on the device, at most 50 characters. Defaults to the site's host name.
installTypeDepends on actionFORCE_INSTALLED (installed automatically, and the user cannot remove it), AVAILABLE (the user can install it) or BLOCKED (never installed or usable). The default for ADD and ADD_WEB_APP is FORCE_INSTALLED. Required for SET_INSTALL_TYPE and not accepted with REMOVE. Web apps and Nomid Store apps are added as FORCE_INSTALLED only. KIOSK is not accepted.

These cannot be changed with this endpoint: Nomid's own apps (the Nomid Settings agent and the inventory, geolocation, store and remote access apps), the policy's kiosk app and making an app the kiosk app (switched with the home screen endpoint), and removing or blocking the app the policy uses as its always-on VPN, the app its kiosk opens or its home screen app. An app already in the policy cannot be added again: use SET_INSTALL_TYPE.

In a kiosk that opens a single app, an added app is installed but not shown. In a multi-app kiosk, or when the policy uses Nomid's launcher, an added app shows on the home screen.

Edit the policy document

The body has one field, edits: an array of 1 to 30 edits with the fields below, applied in order. Read the policy document first and follow its field names and shapes. Edits can change Wi-Fi networks, password rules, restrictions, system updates, the launcher's look, time and geo fences, an app's managed configuration and any other field that is not locked. Each path at most once, except a path ending in /-, which can repeat.

FieldRequiredDescription
opYesSET writes value at path, creating any objects missing on the way. REMOVE clears the field, map key or list item at path.
pathYesA JSON Pointer into the policy document, such as /shortSupportMessage/message. An app is addressed by its package name: /apps/com.example.app/managedConfigurations/serverUrl changes one key of its managed configuration. A path ending in /- appends to a list, and creates the list if it is missing.
valueFor SETRequired for SET, not accepted with REMOVE: the new value, any JSON. To keep a secret as it is stored, send back the redacted marker the document showed in its place. List items are matched by GUID, packageName, key, id or name before their position, so a reordered Wi-Fi list keeps each network's passphrase.

These are refused with 422 and change nothing: locked fields (set by Nomid, or changed another way: the description, tags and group with the details endpoint), kiosk mode itself (switched with the home screen endpoint), an app's identity or install type (use the app changes endpoint), the kiosk app, Nomid's own apps (except ordinary keys of the Nomid Settings agent's managed configuration), misspelled fields and values that do not fit, edits that would leave the policy invalid, and edits that change nothing.

Example: add a Wi-Fi network and set the support message shown on devices. Ask the person for the network's password; never make one up.

curl -X POST "https://api.nomid.tech/emm/api/v1/policies/p7k2m9qa4xz/edits" \
  -H "X-API-Key: $NOMID_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"edits": [
    {"op": "SET", "path": "/openNetworkConfigurations/NetworkConfigurations/-",
     "value": {"Name": "Warehouse-5G", "Type": "WiFi",
               "WiFi": {"SSID": "Warehouse-5G", "Security": "WPA-PSK", "Passphrase": "PASSWORD_FROM_THE_USER", "AutoConnect": true}}},
    {"op": "SET", "path": "/shortSupportMessage/message", "value": "Call IT at 555-0100"}
  ]}'

Change the home screen

FieldRequiredDescription
modeYesOne of STANDARD (the device's own home screen), NOMID_LAUNCHER, KIOSK_MULTI_APP (Nomid Kiosk showing the policy's apps) or KIOSK_SINGLE_APP (Nomid Kiosk locked to kioskApp).
kioskAppNoKIOSK_SINGLE_APP only. Package name of the app the devices are locked to. It must already be in the policy.
maintenancePasswordNoKIOSK_SINGLE_APP only. The code that lets someone leave the app for maintenance, 6 to 64 characters. Leave it out to keep the one the single-app kiosk already has.
dockNoNOMID_LAUNCHER and KIOSK_MULTI_APP only. Package names of policy apps pinned to the launcher's dock, in order, at most 6. On NOMID_LAUNCHER an entry can also be a system app. Leave it out to keep the dock.
addSystemAppsNoNOMID_LAUNCHER only. The device's own built-in apps to show on the launcher: PHONE, CONTACTS, CAMERA, MESSAGES, SETTINGS or BROWSER. Each opens whatever app fills that role on the device, so a preinstalled app needs no package name.
removeSystemAppsNoNOMID_LAUNCHER only. System apps to hide from the launcher, from the same list.
appsOutsidePolicyNoNOMID_LAUNCHER and KIOSK_MULTI_APP only. Which installed apps outside the policy the launcher also shows: POLICY_ONLY (none), PLAY_STORE (apps installed from Google Play) or ALL_INSTALLED (every app on the device, preinstalled ones included; the default). Leave it out to keep the current choice.

Change the description, tags or group

FieldRequiredDescription
descriptionNoThe new description, at most 300 characters. An empty string removes it. Leave it out to keep it.
tagsNoThe whole new tag list, at most 10 tags of 1 to 50 characters each. An empty array removes every tag. Leave it out to keep them.
groupNoThe policy group to move the policy to, by its name in the portal or its path name. Without the right to assign that group, the request returns 403. Leave it out to keep the current group.

Create a policy

FieldRequiredDescription
fromPolicyIdNoOptional. The policy to copy, by its policy ID (pathName). The copy takes its apps, settings and restrictions. Leave it out to create a policy from scratch with Nomid's defaults: the Nomid Settings agent, device reporting and usage collection on, Play Protect enforced, the standard Android home screen and no other apps, in the default group. Once it exists, its apps, home screen, Wi-Fi networks and the rest can be changed with the app changes, home screen and edits endpoints.
displayNameYesName of the new policy as shown in the portal, at most 50 characters.
changesNoSetting changes to apply to the new policy, in the same format as above, on top of the copy or of Nomid's defaults. Leave it out to change nothing; a copy without changes duplicates the policy. No device uses the new policy until you move devices to it.

Roll back a policy

FieldRequiredDescription
revisionYesThe revision number to restore, from the revisions endpoint. The policy's description, tags and group stay as they are. Its name goes back to the revision's name when they differ, and the change list shows it.

Apply a proposal

FieldRequiredDescription
confirmationIgnoredAccepted and ignored. Nothing is checked against it, so do not ask anyone to type anything.

The proposal

Every propose endpoint and the get and apply endpoints return the proposal. The most useful fields:

FieldDescription
proposalIdThe ID to read or apply the proposal with.
statusPENDING until applied, and EXECUTING while an apply is running: neither is final. Then SUCCEEDED or FAILED, UNCONFIRMED when an unexpected error left the outcome unknown, or EXPIRED once expiresAt has passed.
impactNORMAL or HIGH. See Impact and approval.
requiresConfirmationDeprecated alias of HIGH: true when impact is HIGH. Use impact or requiresPortalApproval instead.
requiresPortalApprovalTrue for a HIGH impact proposal: apply is refused until a person approves it in the Nomid portal.
approvalUrlHIGH impact only. The absolute address of the portal page where a person approves the proposal.
fieldsThe change list. Each entry has label (the setting's name), value (the new value) and previousValue (the current value). For an app, label is Add app, Add web app, Remove app or Install type of, followed by the app's name and package or the web app's title and address; value is the install type or REMOVED, and previousValue the current install type or NOT_IN_POLICY. For a document edit, label is the path, value the new value or REMOVED, and previousValue the current value or NOT_SET, with secrets hidden.
summaryOne sentence describing the change, including how many devices use the policy.
targetThe policy the proposal changes: kind, id and name.
expiresAtWhen the proposal expires. After that it can no longer be applied.
resultApply responses only: the policy as it is now, with policyId, displayName, version, a message and portalUrl.

Impact and approval

Nomid rates every proposal NORMAL or HIGH. The rating depends on the change and on how many devices use the policy.

ChangeNORMALHIGH
Any change to a policy with no devices, including every new policyEvery other changeA rollback that restores sections outside the settings table, such as networks, certificates or kiosk
A policy's description, tags and group, which do not affect devicesAlwaysNever
Cosmetic fields: messages, display and soundUp to 49 devices50 or more devices
Ordinary changes: settings from the table below that are not marked high impact, adding an app or changing how it installs, unless that blocks it, and a third-party app's managed configurationUp to 5 devices6 or more devices
Risky changes: apps from unknown sources, Google Play Protect, factory reset, developer options, USB data transfer, storage encryption, removing or blocking an app, the home screen, a rollback, any other policy edit, and the configuration of the Nomid Settings agent or of a secure web appNeverFrom 1 device

With a NORMAL proposal, apply_policy_proposal applies the change. Show the change list to the person responsible and get their approval first. Nomid cannot verify that approval, so the rating only limits what a change made without a person's click can reach.

After the approval, read the outcome with GET /policy-proposals/PROPOSAL_ID, or get_policy_proposal over MCP. There is no separate apply after the click.

requiresConfirmation stays on the proposal as a deprecated alias of HIGH. The confirmation field of the apply body is accepted and ignored. The error code confirmation_required no longer exists.

In the Nomid portal's own chat, one click on the proposal's card approves it, as before.

Proposals are pinned to a policy version

A proposal records the policy version its change list was built on. If the policy is saved again before you apply the proposal, by anyone and from anywhere, apply fails with 409 and code stale_proposal, and nothing changes. The same happens if devices joined the policy and the change would now be HIGH. Read the policy again, propose again and review the new change list.

Example: propose and apply

Read the policy's current settings first, to get the setting IDs and allowed values:

curl "https://api.nomid.tech/emm/api/v1/policies/p7k2m9qa4xz/settings" \
  -H "X-API-Key: $NOMID_API_KEY"
{
  "policyId": "p7k2m9qa4xz",
  "displayName": "Warehouse scanners",
  "version": 12,
  "deviceCount": 18,
  "editable": true,
  "settings": [
    {
      "id": "CAMERA",
      "label": "Camera",
      "group": "RESTRICTIONS",
      "value": "ALLOW",
      "allowedValues": ["ALLOW", "BLOCK"],
      "highImpact": false
    }
  ],
  "apps": [
    {
      "packageName": "tech.nomid.emm.settings.fastup01",
      "name": "Nomid Settings",
      "source": "PLAYSTORE",
      "installType": "FORCE_INSTALLED",
      "managedByNomid": true
    },
    {
      "packageName": "com.zebra.scanner.wedge",
      "name": "DataWedge",
      "source": "PLAYSTORE",
      "installType": "FORCE_INSTALLED"
    }
  ]
}

Propose blocking the camera and USB data transfer:

curl -X POST "https://api.nomid.tech/emm/api/v1/policies/p7k2m9qa4xz/changes" \
  -H "X-API-Key: $NOMID_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"changes": [{"setting": "CAMERA", "value": "BLOCK"}, {"setting": "USB_DATA_ACCESS", "value": "BLOCK"}]}'
HTTP/1.1 201 Created

{
  "capability": "update_policy_settings",
  "status": "PENDING",
  "title": "Edit policy settings",
  "summary": "Change 2 settings of policy \"Warehouse scanners\". 18 devices apply it on their next sync. High impact.",
  "target": { "kind": "policy", "id": "p7k2m9qa4xz", "name": "Warehouse scanners" },
  "fields": [
    { "label": "Camera", "value": "BLOCK", "previousValue": "ALLOW" },
    { "label": "USB data transfer", "value": "BLOCK", "previousValue": "ALLOW" }
  ],
  "expiresAt": "2026-10-10T13:40:00Z",
  "impact": "HIGH",
  "proposalId": "prp_7GQv2LkR9sTn4WxY8bZcA1dE",
  "requiresConfirmation": true,
  "requiresPortalApproval": true,
  "approvalUrl": "https://portal.nomid.tech/#/acme/acme/ai/approvals/prp_7GQv2LkR9sTn4WxY8bZcA1dE"
}

Abridged response. USB data transfer is a high-impact setting and the policy has devices, so the proposal is HIGH impact. It carries requiresPortalApproval and an approvalUrl. Show the change list to the person responsible.

An API key cannot apply a HIGH proposal. If you try, apply is refused and nothing changes:

curl -X POST "https://api.nomid.tech/emm/api/v1/policy-proposals/prp_7GQv2LkR9sTn4WxY8bZcA1dE/apply" \
  -H "X-API-Key: $NOMID_API_KEY"
HTTP/1.1 403 Forbidden
Content-Type: application/problem+json

{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "detail": "HIGH impact: nothing was changed, and this change can't be applied with an API key or an agent's connection. A person must approve it in the Nomid portal: give the user https://portal.nomid.tech/#/acme/acme/ai/approvals/prp_7GQv2LkR9sTn4WxY8bZcA1dE Once they approved it, get_policy_proposal shows the outcome.",
  "instance": "/emm/api/v1/policy-proposals/prp_7GQv2LkR9sTn4WxY8bZcA1dE/apply",
  "code": "portal_approval_required",
  "retryable": false,
  "approvalUrl": "https://portal.nomid.tech/#/acme/acme/ai/approvals/prp_7GQv2LkR9sTn4WxY8bZcA1dE"
}

Give the approvalUrl to the person responsible. Once they have approved the proposal in the Nomid portal, read the outcome:

curl "https://api.nomid.tech/emm/api/v1/policy-proposals/prp_7GQv2LkR9sTn4WxY8bZcA1dE" \
  -H "X-API-Key: $NOMID_API_KEY"
HTTP/1.1 200 OK

{
  "capability": "update_policy_settings",
  "status": "SUCCEEDED",
  "impact": "HIGH",
  "proposalId": "prp_7GQv2LkR9sTn4WxY8bZcA1dE",
  "requiresConfirmation": true,
  "requiresPortalApproval": true,
  "result": {
    "policyId": "p7k2m9qa4xz",
    "displayName": "Warehouse scanners",
    "version": 13,
    "message": "Policy settings changed. Devices on the policy apply them on their next sync."
  }
}

Abridged response. Devices on the policy apply the new settings on their next sync. A NORMAL proposal skips the portal: apply returns this body with status SUCCEEDED.

When the policy changed in the meantime

HTTP/1.1 409 Conflict
Content-Type: application/problem+json

{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "detail": "Policy \"Warehouse scanners\" was changed after this proposal was made. Nothing was applied: read it again and propose again.",
  "instance": "/emm/api/v1/policy-proposals/prp_7GQv2LkR9sTn4WxY8bZcA1dE/apply",
  "code": "stale_proposal",
  "retryable": false
}

Editable settings

These are the setting IDs accepted in changes, with their allowed values. The label is the name the API returns in the change list.

When reading settings, a value can also be NOT_SET (left to the device or Google's default) or CUSTOM (a value set in the portal that these values cannot express). Neither can be sent, but both can be replaced with an allowed value.

SettingLabelGroupAllowed valuesHigh impact from 1 device
PLAY_STORE_MODE Play Store mode APPS BLACKLIST, WHITELIST No
DEFAULT_PERMISSION_POLICY Default runtime permission policy APPS DENY, PROMPT No
APP_AUTO_UPDATE_POLICY App auto-update policy APPS ALWAYS, CHOICE_TO_THE_USER, NEVER, WIFI No
UNTRUSTED_APPS_POLICY Apps from unknown sources SECURITY ALLOW_INSTALL_DEVICE_WIDE, ALLOW_INSTALL_IN_PERSONAL_PROFILE_ONLY, DISALLOW_INSTALL Yes
PLAY_PROTECT Google Play Protect app verification SECURITY ENABLED, USER_CHOICE Yes
SCREEN_CAPTURE Screen capture RESTRICTIONS ALLOW, BLOCK No
CAMERA Camera RESTRICTIONS ALLOW, BLOCK No
FACTORY_RESET Factory reset from Settings RESTRICTIONS ALLOW, BLOCK Yes
UNINSTALL_APPS Uninstalling apps RESTRICTIONS ALLOW, BLOCK No
ACCOUNT_MODIFICATION Adding or removing accounts RESTRICTIONS ALLOW, BLOCK No
ADD_USER Adding users RESTRICTIONS ALLOW, BLOCK No
REMOVE_USER Removing users RESTRICTIONS ALLOW, BLOCK No
DEVELOPER_SETTINGS Developer options and USB debugging SECURITY ALLOW, BLOCK Yes
USB_DATA_ACCESS USB data transfer CONNECTIVITY ALLOW, BLOCK Yes
LOCATION_MODE Location LOCATION DISABLED, ENFORCED, USER_CHOICE No
LOCATION_SHARING Sharing location LOCATION ALLOW, BLOCK No
OUTGOING_CALLS Outgoing calls RESTRICTIONS ALLOW, BLOCK No
SMS SMS RESTRICTIONS ALLOW, BLOCK No
BLUETOOTH Bluetooth CONNECTIVITY ALLOW, BLOCK No
DATA_ROAMING Data roaming CONNECTIVITY ALLOW, BLOCK No
NETWORK_RESET Network settings reset CONNECTIVITY ALLOW, BLOCK No
VPN_CONFIGURATION Configuring VPNs CONNECTIVITY ALLOW, BLOCK No
CONFIGURE_WIFI Configuring Wi-Fi networks CONNECTIVITY ALLOW, BLOCK No
WIFI_DIRECT Wi-Fi Direct CONNECTIVITY ALLOW, BLOCK No
TETHERING Tethering and hotspot CONNECTIVITY ALLOW, BLOCK No
WIFI_STATE Wi-Fi on or off CONNECTIVITY DISABLED, ENABLED, USER_CHOICE No
AIRPLANE_MODE Airplane mode CONNECTIVITY DISABLED, USER_CHOICE No
MINIMUM_WIFI_SECURITY Minimum Wi-Fi security CONNECTIVITY OPEN_NETWORK, PERSONAL_NETWORK No
AUTO_DATE_TIME Automatic date, time and time zone RESTRICTIONS ENFORCED, USER_CHOICE No
ENCRYPTION_POLICY Storage encryption SECURITY ENABLED_WITHOUT_PASSWORD, ENABLED_WITH_PASSWORD, UNSPECIFIED Yes
APPLICATION_REPORT_LEVEL Installed apps reporting REPORTING DISABLED, INSTALLED_AND_REMOVED_APPS, INSTALLED_APPS No
REPORT_DEVICE_SETTINGS Device settings reporting REPORTING DISABLED, ENABLED No
REPORT_DISPLAY_INFO Display information reporting REPORTING DISABLED, ENABLED No
REPORT_HARDWARE_STATUS Hardware status reporting REPORTING DISABLED, ENABLED No
REPORT_MEMORY_INFO Memory information reporting REPORTING DISABLED, ENABLED No
REPORT_NETWORK_INFO Network information reporting REPORTING DISABLED, ENABLED No
REPORT_POWER_EVENTS Power events reporting REPORTING DISABLED, ENABLED No
REPORT_SOFTWARE_INFO Software information reporting REPORTING DISABLED, ENABLED No
REPORT_SYSTEM_PROPERTIES System properties reporting REPORTING DISABLED, ENABLED No

MCP tools

The MCP server exposes the same operations as tools, with policyId and proposalId as arguments instead of path segments. The settings, app changes and edits endpoints are parts of one tool, propose_policy_change, which also has homeScreen and details parts: each call passes exactly one part, with the same content as that endpoint's body.

ToolPermissionDescription
get_policy_settingsPOLICIES_READRead a policy's editable settings with their current and allowed values, and its apps.
get_policy_documentPOLICIES_READRead a policy's full configuration as JSON, or one part of it by path, with secrets hidden and the fields that cannot be changed listed.
list_policy_revisionsPOLICIES_READList a policy's saved revisions, newest first.
get_policy_revision_documentPOLICIES_READRead an exact saved policy revision from list_policy_revisions using policyId and its positive 64-bit revision ID. Optional company selects an authorized company; JSON Pointer path selects a part, and fromIndex continues an object, array or long string. Omit path for the root, including apps; use numeric array indexes instead of current-document app package aliases. Secrets are redacted before selection and paging. Follow nextFromIndex at the same path or read narrower notShown paths. The result is historical and not editable; saved providerVersion does not prove a device applied it, and changedBy does not prove a person made the change.
get_policy_proposalPOLICIES_READRead a proposal made by the same key or connection, with its status.
propose_policy_changesettings partPOLICIES_WRITE + POLICIES_READPropose setting changes to an existing policy.
propose_policy_changeapps partPOLICIES_WRITE + POLICIES_READPropose adding apps to an existing policy (a Google Play or Nomid Store app by package name, or a web app for a URL), removing them, or changing how they are installed.
propose_policy_changeedits partPOLICIES_WRITE + POLICIES_READPropose changes to any editable part of an existing policy, such as Wi-Fi networks, password rules, restrictions, fences or an app's managed configuration, as JSON Pointer edits of the policy document.
create_policyPOLICIES_WRITE + POLICIES_READPropose a new policy, from scratch with Nomid's defaults or as a copy of an existing one, with optional setting changes.
rollback_policyPOLICIES_WRITE + POLICIES_READPropose restoring a policy to an earlier revision.
apply_policy_proposalPOLICIES_WRITE + POLICIES_READApply a pending proposal by its proposalId. A HIGH impact proposal is refused, and the error gives its approvalUrl.

An assistant must show the user the change list and get their explicit approval in the conversation before it calls apply_policy_proposal. For a HIGH impact proposal it does not call apply: it gives the user the proposal's approvalUrl and asks them to approve it in the Nomid portal. It reads the outcome with get_policy_proposal and does not ask the user to type anything.

MCP server

Errors

Once the API key is authenticated, errors use application/problem+json with two extra fields: code, a stable identifier to branch on, and retryable, which says whether the same request can be sent again. A missing or invalid key gets the shared 401 response, a small JSON object with error, message and status. MCP tools return the same code and message as a tool error.

StatusCodeMeaning
400invalid_argumentsThe body is invalid: an unknown setting, action or op, a value that is not allowed, a setting, app, web address or edit path listed twice, too many edits, or a missing field. The detail says which.
403forbiddenThe key lacks POLICIES_WRITE or POLICIES_READ, or the company setting Policy changes is off.
403portal_approval_requiredThe proposal is HIGH impact. Nothing was applied. The body has approvalUrl, and over MCP the address is in the message. A person approves the proposal there, and then get_policy_proposal shows the outcome. The proposal stays pending until it expires.
404not_foundNo such policy or revision visible to this key, or no proposal with this ID made by this key.
409unsupportedThe policy cannot be changed this way: it is not an Android policy, or it is managed by Nomid.
409not_pendingThe proposal is no longer PENDING. Read it to see its status: if it is SUCCEEDED, the change is made. If it is EXECUTING, read it again until it finishes. If it is UNCONFIRMED, read the policy's settings before proposing again. If it is FAILED or EXPIRED, propose again.
409stale_proposalThe policy was saved after the proposal was made, or devices joined it and the change would now be HIGH. Nothing was applied. Read the policy again and propose again.
422refusedThe request cannot be carried out: nothing would change, an app cannot be changed this way, is unknown or is not in the policy, an edited field is locked, misspelled or does not fit, the edited policy would not be valid, the company is not connected to Android Enterprise, or the new policy name cannot be used.
429rate_limitedToo many write requests for this API key or connection. The Retry-After header and the detail give the seconds to wait. retryable is true.
500internal_errorUnexpected error. Read the proposal before retrying: if its status is FAILED, propose again. If it is UNCONFIRMED, read the policy's settings to see whether the change was made before proposing it again.
502provider_errorGoogle's service could not be reached or failed. Nothing was proposed or saved. Try again later.

Rate limits

Each propose and apply call counts toward the write limit of 10 requests per minute for each API key or Sign in with Nomid connection, shared with the device command endpoints, provisioning QR codes and the MCP write tools. Read calls do not count toward it.

Revisions and rollback

Every applied change saves a new revision of the policy. List revisions to see who changed the policy and when, and propose a rollback to undo a change.

Choose Your Time

Loading...
Open booking calendar