> For the complete documentation index, see [llms.txt](https://docs.zaia.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zaia.app/documentation/api-reference-alpha/reference/datagrid-values.md).

# Datagrid Values

## PATCH /api/v1/datagrid-values/{id}

> Updates a datagrid value.

```json
{"openapi":"3.1.0","info":{"title":"Public API","version":"1.0.0"},"servers":[{"description":"API Server","url":"https://api.endless.zaia.app"}],"paths":{"/api/v1/datagrid-values/{id}":{"patch":{"description":"Updates a datagrid value.","tags":["Datagrid Values"],"parameters":[{"schema":{"type":"string","format":"uuid","description":"A UUID v4 string that identifies an entity."},"required":true,"description":"A UUID v4 string that identifies an entity.","name":"id","in":"path"},{"schema":{"type":"string","description":"The API key to use for authentication. Can be created in the api keys section on the workspace settings page."},"required":true,"description":"The API key to use for authentication. Can be created in the api keys section on the workspace settings page.","name":"authorization","in":"header"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["string"]},"value":{"type":"string","nullable":true,"maxLength":1000}},"required":["type","value"]},{"type":"object","properties":{"type":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true}},"required":["type","value"]},{"type":"object","properties":{"type":{"type":"string","enum":["boolean"]},"value":{"type":"boolean","nullable":true}},"required":["type","value"]},{"type":"object","properties":{"type":{"type":"string","enum":["file"]},"value":{"type":"array","nullable":true,"items":{"type":"object","properties":{"description":{"type":"string","nullable":true,"minLength":3,"maxLength":250},"extension":{"anyOf":[{"type":"string","enum":["png"]},{"type":"string","enum":["pdf"]},{"type":"string","enum":["txt"]},{"type":"string","enum":["md"]}]},"file":{"type":"string","nullable":true,"minLength":1},"filePath":{"type":"string","nullable":true,"minLength":1},"id":{"type":"string","nullable":true,"format":"uuid","description":"A UUID v4 string that identifies an entity."},"name":{"type":"string","nullable":true,"minLength":3,"maxLength":50}},"required":["description","extension","file","filePath","id","name"]},"maxItems":5}},"required":["type","value"]}]}}}}}},"responses":{"200":{"description":"The datagrid value was updated.","content":{"application/json":{"schema":{"type":"object","properties":{"createdAt":{"type":"string","format":"date-time"},"id":{"type":"string","format":"uuid","description":"A UUID v4 string that identifies an entity."},"updatedAt":{"type":"string","format":"date-time"},"datagridColumnId":{"type":"string","format":"uuid","description":"A UUID v4 string that identifies an entity."},"datagridId":{"type":"string","format":"uuid","description":"A UUID v4 string that identifies an entity."},"datagridRowId":{"type":"string","format":"uuid","description":"A UUID v4 string that identifies an entity."},"detail":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["string"]},"value":{"type":"string","nullable":true,"maxLength":1000}},"required":["type","value"]},{"type":"object","properties":{"type":{"type":"string","enum":["number"]},"value":{"type":"number","nullable":true}},"required":["type","value"]},{"type":"object","properties":{"type":{"type":"string","enum":["boolean"]},"value":{"type":"boolean","nullable":true}},"required":["type","value"]},{"type":"object","properties":{"type":{"type":"string","enum":["file"]},"value":{"type":"array","nullable":true,"items":{"type":"object","properties":{"description":{"type":"string","nullable":true,"minLength":3,"maxLength":250},"extension":{"anyOf":[{"type":"string","enum":["png"]},{"type":"string","enum":["pdf"]},{"type":"string","enum":["txt"]},{"type":"string","enum":["md"]}]},"filePath":{"type":"string","minLength":1},"id":{"type":"string","format":"uuid","description":"A UUID v4 string that identifies an entity."},"name":{"type":"string","minLength":3,"maxLength":50}},"required":["description","extension","filePath","id","name"]},"maxItems":5}},"required":["type","value"]}]}},"required":["createdAt","id","updatedAt","datagridColumnId","datagridId","datagridRowId","detail"]}}}},"400":{"description":"Invalid datagrid value configuration.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"The error code."},"cta":{"type":"object","properties":{"type":{"type":"string","enum":["support-contact"]},"url":{"type":"string","format":"uri"}},"required":["type","url"],"description":"The error call-to-action."},"feedback":{"type":"object","properties":{"enUs":{"type":"string"},"esEs":{"type":"string"},"ptBr":{"type":"string"}},"description":"The error feedback."},"message":{"type":"string","description":"The error message."},"name":{"type":"string","description":"The error name."}},"required":["feedback","message","name"],"description":"The description of a known exception."}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"The error code."},"cta":{"type":"object","properties":{"type":{"type":"string","enum":["support-contact"]},"url":{"type":"string","format":"uri"}},"required":["type","url"],"description":"The error call-to-action."},"feedback":{"type":"object","properties":{"enUs":{"type":"string"},"esEs":{"type":"string"},"ptBr":{"type":"string"}},"description":"The error feedback."},"message":{"type":"string","description":"The error message."},"name":{"type":"string","description":"The error name."}},"required":["feedback","message","name"],"description":"The description of a known exception."}}}},"404":{"description":"The datagrid value was not found.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"The error code."},"cta":{"type":"object","properties":{"type":{"type":"string","enum":["support-contact"]},"url":{"type":"string","format":"uri"}},"required":["type","url"],"description":"The error call-to-action."},"feedback":{"type":"object","properties":{"enUs":{"type":"string"},"esEs":{"type":"string"},"ptBr":{"type":"string"}},"description":"The error feedback."},"message":{"type":"string","description":"The error message."},"name":{"type":"string","description":"The error name."}},"required":["feedback","message","name"],"description":"The description of a known exception."}}}}}}}}}
```
