Skip to content

Commit 0baf9ea

Browse files
Ignacio Van Droogenbroeckclaude
andcommitted
Update write endpoints to use /api/v1/write prefix
Changes: - Updated Line Protocol endpoints from /write to /api/v1/write - Updated flush endpoint from /write/flush to /api/v1/write/flush - Updated examples in getting-started.md and telegraf.md All write endpoints now match the actual Arc API structure. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 84d5a3a commit 0baf9ea

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

docs/getting-started.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,13 @@ response = requests.post(
152152

153153
```bash
154154
# Single measurement
155-
curl -X POST "http://localhost:8000/write" \
155+
curl -X POST "http://localhost:8000/api/v1/write" \
156156
-H "Authorization: Bearer $ARC_TOKEN" \
157157
-H "Content-Type: text/plain" \
158158
--data-binary "cpu,host=server01,region=us-east usage_idle=95.0,usage_user=3.2 $(date +%s)000000000"
159159

160160
# Multiple measurements
161-
curl -X POST "http://localhost:8000/write" \
161+
curl -X POST "http://localhost:8000/api/v1/write" \
162162
-H "Authorization: Bearer $ARC_TOKEN" \
163163
-H "Content-Type: text/plain" \
164164
--data-binary "cpu,host=server01 usage=64.2
@@ -360,7 +360,7 @@ brew services list | grep minio
360360
Data might not be flushed yet. Wait 5-10 seconds or manually flush:
361361

362362
```bash
363-
curl -X POST http://localhost:8000/write/flush \
363+
curl -X POST http://localhost:8000/api/v1/write/flush \
364364
-H "Authorization: Bearer $ARC_TOKEN"
365365
```
366366

docs/integrations/telegraf.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ For real-time monitoring, use smaller intervals (5s). For cost optimization, use
467467
curl http://localhost:8000/health
468468

469469
# Test with token
470-
curl -X POST http://localhost:8000/write \
470+
curl -X POST http://localhost:8000/api/v1/write \
471471
-H "Authorization: Bearer YOUR_TOKEN" \
472472
-d "test,host=local value=1"
473473

0 commit comments

Comments
 (0)