---
title: "Save the user's selected GEE Cloud Project ID and grant bucket write access."
method: PATCH
path: "/api/v1/user/me/gee-credentials/project"
---

# Save the user's selected GEE Cloud Project ID and grant bucket write access.

`PATCH /api/v1/user/me/gee-credentials/project`

The project ID must correspond to a GCP project that has the Earth Engine
API enabled and that the user has access to.

**Request body** (JSON):
- ``cloud_project`` (str, required): GCP project ID (e.g. ``my-gee-project``)

**Response** adds ``gcs_write_access`` (bool) to indicate whether the IAM
grant succeeded. When ``false`` a ``detail`` field explains why.

## Request body

- object

## Response `200`

Success

- object

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

---

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