> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nx1cloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a workspace

> Create a workspace to group business rules and control who can work on them.

You create a workspace to hold a set of business rules. A workspace is a project-like folder with its own members.
You can't create any rule until you create its workspace.

## Prerequisites

Before starting this task, ensure you have the following:

* Required role: [`nx1_decisions_admin`](https://docs.nx1cloud.com/documentation/govern/tasks/iam/role/assign-a-role)
* Optional: A [custom role that maps to `nx1_decisions_user`](https://docs.nx1cloud.com/documentation/govern/tasks/iam/role/create-a-role)

## Steps

> [tab] Web portal
>
> Perform these steps to create a workspace:
>
> 1. Log in to NexusOne.
> 2. On the top navigation bar, hover your mouse over **Data** and then select **Business Rules**.
> 3. Click **New workspace** at the top right of the page.
> 4. In the **Identifier** field, enter an ID. NexusOne uses it in URLs and evaluation keys, and you can't change it later.
> 5. In the **Name** field, enter a name.
> 6. Optional: In the **Description** field, enter a short description, such as `Pricing rules for loans`.
> 7. Optional: From the **Workspace admin role** list, select your custom role.
>    NexusOne gives it the `workspace_admin` workspace role.
> 8. Optional: Select **Retain evaluation inputs** to save the full input every time a rule runs
>    in the [Business rules audit stream](https://docs.nx1cloud.com/documentation/govern/overview/audit.md#business-rules).
>    Leave it off to keep only a hash, which is safer when inputs carry personal data.
> 9. Click **Create workspace**.

> [tab] REST API
>
> Use the following API endpoints to create a workspace:
>
> 1. [List the Keycloak roles workspace access can be granted to](https://docs.nx1cloud.com/api-reference/endpoints/decisions/list-the-keycloak-roles-workspace-access-can-be-granted-to.md)
> 2. [Create a decision workspace](https://docs.nx1cloud.com/api-reference/endpoints/decisions/create-a-decision-workspace.md)

## Additional resources

To give a team other types of workspace roles to a workspace, such as `Author` or `Approver`, refer to
[Grant a custom role access to a workspace](https://docs.nx1cloud.com/documentation/data/tasks/business-rules/workspaces/grant-a-custom-role-access-to-a-workspace.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.