---
title: "PUT /api/projects/{pid}/spiders/{sid}"
method: PUT
path: "/api/projects/{pid}/spiders/{sid}"
tags: ["api"]
---

# PUT /api/projects/{pid}/spiders/{sid}

`PUT /api/projects/{pid}/spiders/{sid}`

## Request body

- SpiderUpdate
  - `sid` string, uuid — A UUID identifying this spider.
  - `env_vars` SpiderJobEnvVar[] — Project environment variables.
    - `evid` integer, nullable — A unique integer value identifying this job env variable.
    - `name` string, required — Env variable name.
    - `value` string, required — Env variable value.
    - `masked` boolean — Whether the env variable value is masked.
  - `data_status` 'PERSISTENT' | 'PENDING' — New data status.
  - `data_expiry_days` integer — New data expiry days.

## Response `200`

OK

- SpiderUpdate
  - `sid` string, uuid — A UUID identifying this spider.
  - `env_vars` SpiderJobEnvVar[] — Project environment variables.
    - `evid` integer, nullable — A unique integer value identifying this job env variable.
    - `name` string, required — Env variable name.
    - `value` string, required — Env variable value.
    - `masked` boolean — Whether the env variable value is masked.
  - `data_status` 'PERSISTENT' | 'PENDING' — New data status.
  - `data_expiry_days` integer — New data expiry days.

---

[API](https://skmtc.net/bitmakerla/apis/estela-api-v1-0-documentation.md) · [All operations](https://skmtc.net/bitmakerla/apis/estela-api-v1-0-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bitmakerla/estela-api-v1-0-documentation/versions/ec53774a2b78/schema)
