---
title: "Link the project to a SharePoint folder (project.edit). Replaces any earlier link."
method: PUT
path: "/projects/{id}/sharepoint-folder"
tags: ["projects"]
---

# Link the project to a SharePoint folder (project.edit). Replaces any earlier link.

`PUT /projects/{id}/sharepoint-folder`

## Request

- Base URL: `https://api.onplana.com/api`
- URL: `https://api.onplana.com/api/projects/{id}/sharepoint-folder`
- Auth: one of:
  - HTTP bearer
  - API key in header `Authorization`

Identifiers and URLs only; Onplana never stores the files. Every URL must be https on a <tenant>.sharepoint.com host, and the folder must be on the same host as its site. Give either driveId + itemId (Graph) or listId + folderServerRelativeUrl (SharePoint REST).

## Path parameters

- `id` string, required

## Headers

- `X-Organization-Id` string, required

## Request body

- object
  - `siteUrl` string, uri, required
  - `webUrl` string, uri, required
  - `displayName` string, required
  - `siteId` string
  - `driveId` string
  - `itemId` string
  - `listId` string
  - `folderServerRelativeUrl` string

## Response `200`

{ folder }

## Other responses

- `400`: Validation error
- `401`: Unauthorized - missing or invalid JWT
- `403`: Forbidden - insufficient role

---

[API](https://skmtc.dev/onplana/apis/onplana-api.md) · [All operations](https://skmtc.dev/onplana/apis/onplana-api/llms.txt) · [OpenAPI document](https://skmtc.dev/onplana/apis/onplana-api/revisions/c3d6c89e9dc8?raw)
