> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://one.miles-api.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://one.miles-api.com/_mcp/server.

# Patch Ebook Progress

PATCH https://api.milescaira.com/v7/catalogues/product-variants/{pk}/ebook-progress/
Content-Type: application/json

Mark subject ebooks complete.

Reference: https://one.miles-api.com/api-reference/learning-content/catalogues/patch-ebook-progress-v-7-catalogues-product-variants-pk-ebook-progress-patch

## Servers

- `https://api.milescaira.com` (Production, default)
- `https://miles-usp-backend-uat-2-154625965269.asia-south1.run.app` (UAT)
- `http://localhost:8080` (Local)

## Request

### Path parameters

- `pk` (string, required)

### Body (application/json)

This endpoint expects a ProgressPatchIn.

- `subject_id` (integer, optional, nullable)
- `post_id` (string, optional, nullable)
- `watched` (boolean, optional, default: true)

## Response

### 200

Successful Response

- `map from string to string`

## Errors

### 422 Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

## Types

### ValidationError

- `loc` (list of ValidationErrorLocItems, required)
- `msg` (string, required)
- `type` (string, required)
- `input` (any, optional)
- `ctx` (ValidationErrorCtx, optional)

### ValidationErrorLocItems

### ValidationErrorCtx

## Examples

**Request**

```json
{}
```

**Response**

```json
{}
```

**SDK Code**

```python
import requests

url = "https://api.milescaira.com/v7/catalogues/product-variants/pk/ebook-progress/"

payload = {}
headers = {"Content-Type": "application/json"}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.milescaira.com/v7/catalogues/product-variants/pk/ebook-progress/"

	payload := strings.NewReader("{}")

	req, _ := http.NewRequest("PATCH", url, payload)

	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.patch("https://api.milescaira.com/v7/catalogues/product-variants/pk/ebook-progress/")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```