> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mokaru.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Education

> Update an education entry

## Overview

The Update Education endpoint lets you modify an existing education entry's details. Only include the fields you want to change. Pass `null` for optional fields to clear them.

<Note>
  **Scope required:** `education:write` | **Rate limit:** 20 requests/min
</Note>

## Request

```bash theme={null}
PATCH /v1/education/{id}
```

### Body Parameters

All fields are optional, but at least one must be provided.

<ParamField body="school" type="string">
  School or institution name (max 200 characters)
</ParamField>

<ParamField body="degree" type="string | null">
  Degree type (max 200 characters, null to clear)
</ParamField>

<ParamField body="field" type="string | null">
  Field of study (max 200 characters, null to clear)
</ParamField>

<ParamField body="startDate" type="string | null">
  ISO 8601 date string (null to clear)
</ParamField>

<ParamField body="endDate" type="string | null">
  ISO 8601 date string (null to clear)
</ParamField>

<ParamField body="isCurrent" type="boolean">
  Whether currently enrolled
</ParamField>

<ParamField body="description" type="string | null">
  Additional details (max 5000 characters, null to clear)
</ParamField>

### Example

```bash theme={null}
curl -X PATCH "https://api.mokaru.ai/v1/education/clx1234" \
  -H "Authorization: Bearer mk_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "degree": "Master of Science",
    "field": "Machine Learning"
  }'
```

## Response

<ResponseField name="success" type="boolean">Whether the education was updated</ResponseField>
<ResponseField name="id" type="string">The education entry's ID</ResponseField>

```json theme={null}
{
  "success": true,
  "id": "clx1234..."
}
```
