# Save the apply profile

Replaces the apply profile, or one client's with clientId. Fields added after a caller was written may be left out and take their empty value; a caller's deprecated autoSubmit stands for the submit mode it leaves out. Requires authentication.

```http
PUT https://hiresweep.com/api/openapi/apply-profile
x-api-key: YOUR_API_KEY
```

## Request body

```json
{
  "type": "object",
  "properties": {
    "phone": {
      "type": "string",
      "maxLength": 64
    },
    "location": {
      "type": "string",
      "maxLength": 200
    },
    "workAuthorization": {
      "type": "string",
      "maxLength": 500
    },
    "requiresSponsorship": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ]
    },
    "workAuthorizations": {
      "type": "array",
      "maxItems": 15,
      "items": {
        "type": "object",
        "properties": {
          "country": {
            "type": "string",
            "pattern": "^[A-Z]{2}$"
          },
          "status": {
            "enum": [
              "citizen",
              "permanent_resident",
              "authorized",
              "needs_sponsorship",
              "not_authorized"
            ],
            "type": "string"
          }
        },
        "required": [
          "country",
          "status"
        ]
      }
    },
    "willingToRelocate": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    },
    "earliestStartDate": {
      "type": "string",
      "default": ""
    },
    "salaryExpectation": {
      "type": "string",
      "maxLength": 200
    },
    "noticePeriod": {
      "type": "string",
      "maxLength": 200
    },
    "address": {
      "type": "object",
      "properties": {
        "street": {
          "type": "string",
          "maxLength": 200
        },
        "city": {
          "type": "string",
          "maxLength": 100
        },
        "region": {
          "type": "string",
          "maxLength": 100
        },
        "postalCode": {
          "type": "string",
          "maxLength": 32
        },
        "country": {
          "type": "string",
          "pattern": "^([A-Z]{2})?$"
        }
      },
      "required": [
        "street",
        "city",
        "region",
        "postalCode",
        "country"
      ],
      "default": {
        "street": "",
        "city": "",
        "region": "",
        "postalCode": "",
        "country": ""
      }
    },
    "linkedinUrl": {
      "type": "string",
      "maxLength": 500
    },
    "githubUrl": {
      "type": "string",
      "maxLength": 500
    },
    "portfolioUrl": {
      "type": "string",
      "maxLength": 500
    },
    "references": {
      "type": "array",
      "maxItems": 5,
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "relationship": {
            "type": "string",
            "maxLength": 120
          },
          "company": {
            "type": "string",
            "maxLength": 200
          },
          "email": {
            "type": "string",
            "maxLength": 254
          },
          "phone": {
            "type": "string",
            "maxLength": 64
          }
        },
        "required": [
          "name",
          "relationship",
          "company",
          "email",
          "phone"
        ]
      },
      "default": []
    },
    "securityClearance": {
      "type": "string",
      "maxLength": 200,
      "default": ""
    },
    "driversLicense": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    },
    "selfIdentification": {
      "type": "object",
      "properties": {
        "gender": {
          "enum": [
            "decline",
            "female",
            "male",
            "non_binary"
          ],
          "type": "string"
        },
        "raceEthnicity": {
          "enum": [
            "decline",
            "american_indian_or_alaska_native",
            "asian",
            "black_or_african_american",
            "hispanic_or_latino",
            "native_hawaiian_or_pacific_islander",
            "white",
            "two_or_more"
          ],
          "type": "string"
        },
        "veteranStatus": {
          "enum": [
            "decline",
            "not_protected_veteran",
            "protected_veteran"
          ],
          "type": "string"
        },
        "disabilityStatus": {
          "enum": [
            "decline",
            "no",
            "yes"
          ],
          "type": "string"
        }
      },
      "required": [
        "gender",
        "raceEthnicity",
        "veteranStatus",
        "disabilityStatus"
      ],
      "default": {
        "gender": "decline",
        "raceEthnicity": "decline",
        "veteranStatus": "decline",
        "disabilityStatus": "decline"
      }
    },
    "answers": {
      "type": "array",
      "maxItems": 200,
      "items": {
        "type": "object",
        "properties": {
          "question": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          },
          "answer": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2000
          }
        },
        "required": [
          "question",
          "answer"
        ]
      }
    },
    "submitMode": {
      "enum": [
        "review",
        "hybrid",
        "auto"
      ],
      "type": "string"
    },
    "autoSubmitMinScore": {
      "type": "integer",
      "minimum": 50,
      "maximum": 100,
      "default": 80
    },
    "autoSubmit": {
      "type": "boolean",
      "description": "Deprecated: send submitMode instead. When submitMode is left out, true reads as auto, false as review."
    },
    "clientId": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1
        },
        {
          "type": "null"
        }
      ],
      "description": "The client whose data this is, for an operator applying on behalf of clients. Omit for your own."
    }
  },
  "required": [
    "phone",
    "location",
    "workAuthorization",
    "requiresSponsorship",
    "salaryExpectation",
    "noticePeriod",
    "linkedinUrl",
    "githubUrl",
    "portfolioUrl",
    "answers"
  ]
}
```

## Responses

- `200`: The saved apply profile.
