---
updatedAt: 2025-06-03T20:40:09.000Z
agentTools:
  projectIndex: https://docs.ol-hub.com/llms.txt
---

# add modules to project

The **add modules to project** API sends a PUT request to add modules to a project.

**Prerequisites**:

The caller must supply the project **id** and **modulesIds** to be added to the project.

**Input parameters**:

| Field name     | Description              | Format |
| :------------- | :----------------------- | :----- |
| **id**         | Project id               | UUID   |
| **modulesIds** | Set (list) of module ids | UUID   |

**Output**:

HTTP Status: 204 No Content

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Public APIs - Projects",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.ol-hub.com/backend"
    }
  ],
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-KEY"
      }
    }
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "tags": [
    {
      "name": "Project"
    }
  ],
  "paths": {
    "/api/v1/projects/{id}/modules": {
      "put": {
        "tags": [
          "Project"
        ],
        "summary": "add modules to project",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "example": {
                  "modulesIds": []
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "example": "application/json"
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true,
            "example": "e4eb5e03-9af4-4ca6-a467-af5241896182"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```