user-documents

Update User Document

Update an existing user document title or type.

put/user-documents/{id}

Request

  • Base URL: https://api.aiapplyd.com/api/v1
  • URL: https://api.aiapplyd.com/api/v1/user-documents/{id}
  • Auth: HTTP bearer

Path parameters

idstring required

User document identifier

Example:1

Request body

titlestring

Document title

documentType'cover_letter' | 'resume' | 'custom' | 'tailored_resume' | 'translation' | 'match_report'

Type of document

contentMarkdownstring

Markdown/text content of the document (used by resume builder sync)

Example request

{
  "title": "Updated Resume",
  "documentType": "cover_letter",
  "contentMarkdown": "# John Doe\nSenior Software Engineer\n\n## Summary\n..."
}

Response

User document updated successfully

successtrue required

Example response

{
  "data": {
    "id": 1,
    "userId": "user_123",
    "title": "My Resume",
    "documentType": "cover_letter",
    "status": "ready",
    "modelName": "google/gemini-2.5-flash-lite",
    "sourceJobId": 5,
    "sourceJobTitle": "Senior Software Engineer",
    "sourceJobCompany": "Acme Corp",
    "r2Key": "user-documents/user_123/1/resume.pdf",
    "r2Filename": "resume.pdf",
    "r2Filesize": 102400,
    "r2MimeType": "application/pdf",
    "shareToken": "a1b2c3d4e5f6...",
    "atsScore": 85,
    "atsSuggestions": [
      "Add more keywords",
      "Use standard section headings"
    ],
    "atsStrengths": [
      "Clear formatting",
      "Relevant skills listed"
    ],
    "atsWeaknesses": [
      "Missing quantified achievements"
    ],
    "createdAt": "2024-01-01T00:00:00Z",
    "updatedAt": "2024-01-15T10:30:00Z",
    "contentMarkdown": "# Jane Doe\nSenior Software Engineer\n...",
    "contentLocked": true,
    "resolvable": true,
    "builderImportable": true
  },
  "meta": {
    "duration": 150,
    "requestId": "req_abc123",
    "timestamp": "2026-10-13T10:27:20.268Z",
    "version": "v1"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.