---
agentTools:
  projectIndex: https://docs.archisnapper.com/llms.txt
---

# User access per project

This API endpoint allows you to link or unlink users (their access) from a project.

This will only change the user access for the projects, but will not remove the user itself.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "API Settings",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://app3.archisnapper.com/api/public/v1"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/site/link_user": {
      "put": {
        "summary": "User access per project",
        "description": "",
        "operationId": "unlink-users-to-projects",
        "parameters": [
          {
            "name": "auth_token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "user",
            "in": "query",
            "description": "Email of the user",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "do",
            "in": "query",
            "description": "the action you want to do: either \"add\" or \"remove\"",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "query",
            "description": "the project \"id\". Alternatively, you can use \"unique_id\" or \"client_internal_unique_id\"",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "unique_id",
            "in": "query",
            "description": "either use this, or use the project id (or client_internal_unique_id)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "client_internal_unique_id",
            "in": "query",
            "description": "Your internal unique ID (can be used as an alternative to id or unique_id)",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "63053e399807941f67a925c7:58d2dac59c99c92f006475b2"
}
```