applications

Apply Document Patch

Persist a chat-edited tailored resume or cover letter and regenerate its PDF.

patch/applications/{resultId}/document

Request

  • Base URL: https://api.aiapplyd.com/api/v1
  • URL: https://api.aiapplyd.com/api/v1/applications/{resultId}/document
  • Auth: HTTP bearer

Path parameters

resultIdstring required

Application result identifier

Example:1

Request body

documentType'resume' | 'cover-letter' required

Which document the applied patch mutated: resume or coverLetter

contentstring required

Final document markdown after client-applied chat patches

patchCountinteger required

Number of DocumentPatch entries the client applied to produce content

Example request

{
  "documentType": "resume",
  "patchCount": 3,
  "structuredResume": {
    "education": [
      {
        "degree": "B.S. Computer Science",
        "institution": "MIT"
      }
    ],
    "experience": [
      {
        "bullets": [
          "Led migration of monolithic architecture to microservices, reducing deployment time by 60%"
        ],
        "company": "Acme Corp",
        "endDate": "2024-01",
        "startDate": "2020-01",
        "title": "Senior Engineer"
      }
    ],
    "personalInfo": {
      "fullName": "Ada Lovelace",
      "location": "San Francisco, CA",
      "phone": "+1 (555) 123-4567",
      "title": "Senior Software Engineer"
    }
  }
}

Response

Patch applied and PDF regenerated

successtrue required

Example response

{
  "data": {
    "documentType": "resume",
    "structuredResume": {
      "education": [
        {
          "degree": "B.S. Computer Science",
          "institution": "MIT"
        }
      ],
      "experience": [
        {
          "bullets": [
            "Led migration of monolithic architecture to microservices, reducing deployment time by 60%"
          ],
          "company": "Acme Corp",
          "endDate": "2024-01",
          "startDate": "2020-01",
          "title": "Senior Engineer"
        }
      ],
      "personalInfo": {
        "fullName": "Ada Lovelace",
        "location": "San Francisco, CA",
        "phone": "+1 (555) 123-4567",
        "title": "Senior Software Engineer"
      }
    }
  },
  "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.