---
title: "Assign permissions to a site"
method: POST
path: "/api/accounts/{account_name}/sites/{site_name}/permissions"
tags: ["Permissions"]
---

# Assign permissions to a site

`POST /api/accounts/{account_name}/sites/{site_name}/permissions`

## Request

- Base URL: `https://api.duda.co`
- URL: `https://api.duda.co/api/accounts/{account_name}/sites/{site_name}/permissions`
- Auth: HTTP basic

If the user already have permissions to the sites they will be overwritten

## Path parameters

- `account_name` string, required
- `site_name` string, required

## Request body

- SiteAccessRDT
  - `permissions` string[]: Permissions the account has on the site.

## Response `204`

No Content

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `402`: Payment Required
- `405`: Method Not Allowed
- `429`: Too many requests. The rate limit was exceeded.
- `500`: Internal Server Error

---

[API](https://skmtc.dev/duda/apis/duda-partner-api.md) - [All operations](https://skmtc.dev/duda/apis/duda-partner-api/llms.txt) - [OpenAPI document](https://skmtc.dev/duda/apis/duda-partner-api/revisions/52be4d41cb12?raw)
