---
updatedAt: 2026-05-28T05:27:12.000Z
agentTools:
  projectIndex: https://developers.smartrecruiters.com/llms.txt
---

# Update a candidate's source

Update a candidate's source

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "version": "1",
    "title": "Candidates API",
    "contact": {
      "name": "SmartRecruiters",
      "url": "https://developers.smartrecruiters.com"
    }
  },
  "tags": [
    {
      "name": "candidates"
    }
  ],
  "paths": {
    "/candidates/{id}/jobs/{jobId}/source": {
      "parameters": [
        {
          "$ref": "#/components/parameters/candidateId"
        },
        {
          "$ref": "#/components/parameters/jobId"
        }
      ],
      "put": {
        "responses": {
          "204": {
            "description": ""
          },
          "400": {
            "description": "with codes:\n* **INVALID_SOURCE_TYPE** when provided type does not exist,\n* **SUBTYPE_REQUIRED** when there are more sources and subtype parameter is required,\n* **INVALID_SOURCE** when source id does not exist in provided type.\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Candidate access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Candidate is not assigned to given job.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "description": "Update a candidate's source",
        "tags": [
          "candidates"
        ],
        "summary": "Update a candidate's source",
        "operationId": "candidates.source.update",
        "security": [
          {
            "key": []
          },
          {
            "oauth": [
              "candidates_manage"
            ]
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CandidateSource"
              }
            }
          },
          "description": "Candidate source to be set",
          "required": true
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "key": {
        "type": "apiKey",
        "in": "header",
        "name": "x-smarttoken"
      },
      "oauth": {
        "type": "oauth2",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://www.smartrecruiters.com/identity/oauth/allow",
            "tokenUrl": "https://api.smartrecruiters.com/identity/oauth/token",
            "scopes": {
              "candidates_read": "Access Candidates",
              "candidates_create": "Create Candidates",
              "candidates_offers_read": "Access Offer Terms",
              "candidates_manage": "Manage Candidate Status and Properties",
              "candidate_status_read": "Access Candidate's status",
              "candidates_parse_resume": "Access Resume Parsing"
            }
          }
        }
      }
    },
    "schemas": {
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Error": {
        "type": "object",
        "required": [
          "code"
        ],
        "properties": {
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        }
      },
      "CandidateSource": {
        "type": "object",
        "required": [
          "sourceTypeId",
          "sourceId"
        ],
        "properties": {
          "sourceTypeId": {
            "type": "string",
            "minLength": 1
          },
          "sourceSubTypeId": {
            "type": "string"
          },
          "sourceId": {
            "type": "string",
            "minLength": 1
          }
        }
      }
    },
    "parameters": {
      "candidateId": {
        "in": "path",
        "description": "candidate identifier",
        "name": "id",
        "required": true,
        "schema": {
          "type": "string"
        }
      },
      "jobId": {
        "in": "path",
        "description": "job identifier",
        "name": "jobId",
        "required": true,
        "schema": {
          "type": "string"
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.smartrecruiters.com"
    }
  ]
}
```