---
title: "(Internal) Update state file"
method: PUT
path: "/internal/project/{projectid}/jobs/{id}/statefile"
tags: ["Internal"]
---

# (Internal) Update state file

`PUT /internal/project/{projectid}/jobs/{id}/statefile`

Internal endpoint to update the state file associated with a job.

## Path parameters

- `projectid` string, required
- `id` integer, required

## Request body

- DtoUpdateStateFileRequest
  - `state_file` string, required

## Response `200`

state file updated successfully

## Other responses

- `400` — failed to validate request
- `404` — job not found
- `413` — payload too large
- `500` — internal server error

---

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