---
title: "Let an address, a Workspace domain or a group open an owned machine's private app"
method: POST
path: "/api/nodes/{node_id}/shares/{service_name}/access-rules"
tags: ["nodes"]
---

# Let an address, a Workspace domain or a group open an owned machine's private app

`POST /api/nodes/{node_id}/shares/{service_name}/access-rules`

## Request

- Base URL: `https://app.nerdit.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://app.nerdit.ai/api/nodes/{node_id}/shares/{service_name}/access-rules`
- Auth: none declared

Add one rule, or answer the identical active one: a repeat is not an error.

A paid account only (decision k), on any machine. When the app is not
shared yet it is shared **private** on the machine first, and a private
share is locked hosted-only; a share or lock the machine does not let
the cloud make is refused with the command to run there.
With ``invite`` the address is emailed after this answer is sent.
A group, by its id, is attached only while groups are on (404 off).

## Path parameters

- `service_name` string, required
- `node_id` string, uuid, required

## Request body

- AccessRuleRequest: One rule: an address, a Google Workspace domain, or a group by its id.
  - `kind` 'email' | 'google_domain' | 'group', required
  - `value` string, required
  - `invite` boolean

## Response `200`

Successful Response

- AccessRuleAdded: The rule an add answers with. ``value`` is lower-case, as it is compared. No session count: the add never computes one, and a repeat names a rule that may already have visitors. The list states it.
  - `id` string, uuid, required
  - `kind` 'email' | 'google_domain' | 'group', required
  - `value` string, required
  - `created_at` string, date-time, required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `422`: Unprocessable Content
- `429`: Too Many Requests
- `502`: Bad Gateway

---

[API](https://skmtc.dev/nerdit/apis/nerdit-cloud-web.md) · [All operations](https://skmtc.dev/nerdit/apis/nerdit-cloud-web/llms.txt) · [OpenAPI document](https://skmtc.dev/nerdit/apis/nerdit-cloud-web/revisions/06e3b44b58be?raw)
