# Patch resume data

Applies JSON Patch (RFC 6902) operations to partially update a resume's data. This allows small, targeted changes (e.g. updating a single field) without sending the entire resume object. Locked resumes cannot be patched. Requires authentication.

```http
PATCH https://hiresweep.com/api/openapi/resumes/{id}
x-api-key: YOUR_API_KEY
```

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | Yes |  |

## Request body

```json
{
  "type": "object",
  "properties": {
    "expectedUpdatedAt": {
      "type": "string",
      "format": "date-time",
      "x-native-type": "date",
      "description": "If provided, the patch only applies when the resume version still matches this timestamp."
    },
    "operations": {
      "type": "array",
      "minItems": 1,
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "op": {
                "const": "add"
              },
              "path": {
                "type": "string"
              },
              "value": {}
            },
            "required": [
              "op",
              "path"
            ]
          },
          {
            "type": "object",
            "properties": {
              "op": {
                "const": "remove"
              },
              "path": {
                "type": "string"
              }
            },
            "required": [
              "op",
              "path"
            ]
          },
          {
            "type": "object",
            "properties": {
              "op": {
                "const": "replace"
              },
              "path": {
                "type": "string"
              },
              "value": {}
            },
            "required": [
              "op",
              "path"
            ]
          },
          {
            "type": "object",
            "properties": {
              "op": {
                "const": "move"
              },
              "path": {
                "type": "string"
              },
              "from": {
                "type": "string"
              }
            },
            "required": [
              "op",
              "path",
              "from"
            ]
          },
          {
            "type": "object",
            "properties": {
              "op": {
                "const": "copy"
              },
              "path": {
                "type": "string"
              },
              "from": {
                "type": "string"
              }
            },
            "required": [
              "op",
              "path",
              "from"
            ]
          },
          {
            "type": "object",
            "properties": {
              "op": {
                "const": "test"
              },
              "path": {
                "type": "string"
              },
              "value": {}
            },
            "required": [
              "op",
              "path"
            ]
          }
        ]
      },
      "description": "An array of JSON Patch (RFC 6902) operations to apply to the resume data."
    }
  },
  "required": [
    "operations"
  ]
}
```

## Responses

- `200`: The patched resume with its full data.
- `400`: 400
- `409`: 409
