---
title: "Assign Resources to Default Project"
method: POST
path: "/v2/projects/default/resources"
tags: ["DigitalOcean-public.v2-new_Project Resources"]
---

# Assign Resources to Default Project

`POST /v2/projects/default/resources`

To assign resources to your default project, send a POST request to `/v2/projects/default/resources`.

You must have both project:update and <resource>:read scopes to assign new resources. For example, to assign a Droplet to the default project, include both the `project:update` and `droplet:read` scopes.

## Request body

- ProjectAssignment
  - `resources` Urn[] — A list of uniform resource names (URNs) to be added to a project. Only resources that you are authorized to see will be returned.

## Response `200`

The response will be a JSON object with a key called `resources`.
The value of this will be an object with the standard resource attributes.

Only resources that you are authorized to see will be returned.

- object
  - `resources` Resource[] — All resources, including the ones added in the request, that are assigned to the project. Only resources that you are authorized to see will be returned.
    - `urn` string — The uniform resource name (URN) for the resource in the format do:resource_type:resource_id.
    - `assigned_at` string, date-time — A time value given in ISO8601 combined date and time format that represents when the project was created.
    - `links` object — The links object contains the `self` object, which contains the resource relationship.
      - `self` string, uri — A URI that can be used to retrieve the resource.
    - `status` 'ok' | 'not_found' | 'assigned' | 'already_assigned' | 'service_down' — The status of assigning and fetching the resources.

## Other responses

- `401` — Authentication failed due to invalid credentials.
- `404` — The resource was not found.
- `429` — The API rate limit has been exceeded.
- `500` — There was a server error.
- `default` — There was an unexpected error.

## Changes

- **2025-10-16** `cb3bf9b21459` — 2 info
  - api tag `DigitalOcean-public.v2-new_Project Resources` added
  - api tag `Project Resources` removed
- **2025-07-18** `f8e8c290636c` — 1 info
  - endpoint added
- **2025-07-17** `5fc9af728e82` — 1 breaking
  - api path removed without deprecation
- **2025-07-17** `f8e8c290636c` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/digitalocean/apis/digitalocean-api/changes/v2/projects/default/resources/post.md)

---

[API](https://skmtc.dev/digitalocean/apis/digitalocean-api.md) · [All operations](https://skmtc.dev/digitalocean/apis/digitalocean-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/digitalocean/digitalocean-api/revisions/cb3bf9b21459/schema)
