# Invite user to path

You can invite someone to a path to provide them with custom access to its content. The invited user needs to accept this invite to starting using the new access.

A user can be invited by their userId and email. When inviting a user through their email, an email is sent to the given address if no user with that email exists yet. This email contains a link that will help the invited user setup their account.&#x20;

| **Description** | Invite user to access a path. |
| --------------- | ----------------------------- |
| **Endpoint**    | `/path/{pathId}/invite`       |
| **Method**      | POST                          |

### Access Level Rules

| **Access Level** | share and the same access as is included in the invitation |
| ---------------- | ---------------------------------------------------------- |

### Processing Units

| **Processing units** | 2 |
| -------------------- | - |

### Parameters

<table><thead><tr><th width="223">Name</th><th>Description</th><th>Required</th><th>Default</th><th data-hidden>Required</th><th data-hidden>Default</th></tr></thead><tbody><tr><td><code>pathId</code></td><td>The id of the path to share.</td><td>true</td><td></td><td>true</td><td></td></tr><tr><td><code>access</code></td><td>An <a href="../../../../getting-started/quick-start/5.-data-sharing-and-user-access">access Object</a> with properties  "geoFence", "monthlyFee", "accessTier" and "processingUnits" defining the access given to the user. <br><br>"accessTier" needs to be one of 'view', 'viewPlus', 'share', 'edit', 'fillView', 'editPlus' or 'admin'</td><td>true</td><td></td><td>true</td><td></td></tr><tr><td><code>userId</code></td><td>The id of the user to share the path with.</td><td>Required if no email is given.</td><td>Default null.</td><td>true</td><td></td></tr><tr><td><code>email</code></td><td>The email of the user to share the path with.</td><td>Required if no userId is given.</td><td>Default null.</td><td></td><td></td></tr><tr><td><code>sendMail</code></td><td>Boolean whether an invite email should be sent when inviting using the userId parameter.</td><td>false</td><td>Default true.</td><td></td><td></td></tr></tbody></table>
