---
title: "Update script metadata without uploading a new script archive."
method: PATCH
path: "/api/v1/script/{script}/config"
---

# Update script metadata without uploading a new script archive.

`PATCH /api/v1/script/{script}/config`

**Authentication**: JWT token required
**Authorization**: Admin or script owner access required
**Content-Type**: application/json

**Path Parameters**:
- `script`: Script identifier/slug or UUID

**Request Body** (all fields optional):
```json
{
  "name": "New Script Name",
  "description": "Updated description",
  "uses_gee": true
}
```

**Updatable Fields**:
- `name`: Script display name
- `description`: Script description text
- `uses_gee`: Whether the script uses Google Earth Engine (boolean)

**Error Responses**:
- `400 Bad Request`: No valid fields provided
- `401 Unauthorized`: JWT token required
- `403 Forbidden`: Insufficient permissions
- `404 Not Found`: Script does not exist

## Path parameters

- `script` string, required

## 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)
