For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
  • Get Started
    • Introduction
    • Quickstart
    • Authentication
  • API Reference
      • GETList Dictionary Entries
      • POSTCreate Dictionary Entry
      • GETSearch Dictionary Entries
      • GETList Dictionary Languages
      • POSTSuggest Pronunciation
      • PUTUpdate Dictionary Entry
      • DELDelete Dictionary Entry
  • Python SDK
    • Install
    • Usage
    • Errors
  • CLI
    • Overview
LogoLogo
API Referencedictionary

Update Dictionary Entry

PUT
/api/v1/dictionary/:entry_id
PUT
/api/v1/dictionary/:entry_id
$curl -X PUT https://api.onepin.ai/api/v1/dictionary/entry_id \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json" \
> -d '{}'
1{
2 "data": {
3 "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
4 "word": "serendipity",
5 "method": "spelled",
6 "language": "en",
7 "uses_count": 42,
8 "created_at": "2024-01-15T09:30:00Z",
9 "updated_at": "2024-04-20T14:45:00Z",
10 "description": "The occurrence and development of events by chance in a happy or beneficial way.",
11 "pronunciation": "ser-en-DIP-uh-tee",
12 "audio_url": "https://cdn.onepin.ai/audio/serendipity.mp3",
13 "ipa": "ˌsɛrənˈdɪpɪti",
14 "created_by": "7c9e6679-7425-40de-944b-e07fc1f90ae7"
15 },
16 "meta": {
17 "request_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
18 "timestamp": "2024-04-20T14:45:00Z"
19 }
20}
Update a dictionary entry scoped to the current workspace.
Was this page helpful?
Previous

Delete Dictionary Entry

Next
Built with

Authentication

AuthorizationBearer
Clerk JWT token
OR
AuthorizationBearer

Onepin live API key (op_live_...). Test and public keys are reserved in Phase 1.

Path parameters

entry_idstringRequiredformat: "uuid"

Headers

X-Workspace-Idstring or nullOptional

Request

This endpoint expects an object.
wordstring or nullOptional1-255 characters
descriptionstring or nullOptional<=500 characters
pronunciationstring or nullOptional<=500 characters
upload_idstring or nullOptionalformat: "uuid"
methodenum or nullOptional
Allowed values:
languagestring or nullOptionalformat: "^[a-zA-Z]{2,3}(-[a-zA-Z0-9]{2,4})?$"1-10 characters
ipastring or nullOptional<=500 characters

User-provided IPA transcription. Persisted as-is. Auto-generation via phonemizer/LLM is a POD-256 follow-up.

Response

Successful Response
dataobject
metaobject

Errors

422
Unprocessable Entity Error