---
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.

---

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