---
updatedAt: 2026-05-27T16:33:24.000Z
agentTools:
  projectIndex: https://developers.smartrecruiters.com/llms.txt
---

# Update predefined location

Updates predefined location by id

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "version": "1.2.0",
    "title": "Configuration API",
    "contact": {
      "name": "SmartRecruiters",
      "url": "https://developers.smartrecruiters.com"
    }
  },
  "paths": {
    "/configuration/predefined-locations/{id}": {
      "put": {
        "parameters": [
          {
            "$ref": "#/components/parameters/predefinedLocationId"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PredefinedLocationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Predefined location successfully updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PredefinedLocation"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Predefined location not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Cannot update predefined location for the following reason:\n- TITLE_ALREADY_EXISTS - The title is already used for another predefined location\n- IDENTIFIER_ALREADY_EXISTS - The identifier is already used for another predefined location\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "tags": [
          "predefined-locations"
        ],
        "summary": "Update predefined location",
        "description": "Updates predefined location by id",
        "operationId": "configuration.predefined-locations.updateOne",
        "security": [
          {
            "key": []
          },
          {
            "oauth": [
              "configuration_manage"
            ]
          }
        ]
      }
    }
  },
  "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": {
              "configuration_read": "Access Company Settings",
              "configuration_manage": "Manage Company Settings",
              "company_read": "Access Company Information",
              "recruiter_sources_manage": "Manage Recruiter Sources"
            }
          }
        }
      }
    },
    "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"
          }
        }
      },
      "PredefinedLocation": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "nullable": false
          },
          "country": {
            "type": "string",
            "example": "Switzerland"
          },
          "region": {
            "type": "string",
            "example": "Canton of Bern"
          },
          "regionAbbr": {
            "type": "string",
            "example": "CH-BE"
          },
          "countryCode": {
            "type": "string",
            "nullable": false,
            "example": "CH"
          },
          "city": {
            "type": "string",
            "nullable": false,
            "example": "Bern"
          },
          "address": {
            "type": "string",
            "example": "Kramgasse 49"
          },
          "postalCode": {
            "type": "string",
            "example": "3011"
          },
          "title": {
            "type": "string",
            "example": "Bern Shop #1 (Einstein Haus)"
          },
          "identifier": {
            "type": "string",
            "example": "BE-Einstein_House-1"
          },
          "lat": {
            "type": "number",
            "example": 46.947807
          },
          "lng": {
            "type": "number",
            "example": 7.4474266
          }
        }
      },
      "PredefinedLocationRequest": {
        "required": [
          "city",
          "countryCode"
        ],
        "type": "object",
        "properties": {
          "city": {
            "maxLength": 128,
            "minLength": 1,
            "type": "string",
            "description": "Not blank. No leading and trailing spaces allowed.",
            "example": "Bern"
          },
          "countryCode": {
            "maxLength": 2,
            "minLength": 2,
            "type": "string",
            "description": "ISO-3166-1 alpha-2 country code",
            "example": "CH"
          },
          "region": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "example": "Canton of Bern"
          },
          "regionAbbr": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "description": "Not blank. No leading and trailing spaces allowed. Region abbreviation, if applicable. E.g. Utah -> UT.\n",
            "example": "CH-BE"
          },
          "address": {
            "maxLength": 256,
            "minLength": 0,
            "type": "string",
            "description": "Not blank. No leading and trailing spaces allowed.",
            "example": "Kramgasse 49"
          },
          "postalCode": {
            "maxLength": 32,
            "minLength": 0,
            "type": "string",
            "description": "Not blank. No leading and trailing spaces allowed.",
            "example": "3011"
          },
          "lat": {
            "type": "number",
            "example": 46.947807,
            "minimum": -90,
            "maximum": 90,
            "description": "Decimal latitude value"
          },
          "lng": {
            "type": "number",
            "example": 7.4474266,
            "minimum": -180,
            "maximum": 180,
            "description": "Decimal longitude value"
          },
          "title": {
            "maxLength": 128,
            "minLength": 3,
            "type": "string",
            "description": "User managed Title. If present, value must not be blank and must be unique within the company (case insensitive).",
            "example": "Bern Shop #1 (Einstein Haus)"
          },
          "identifier": {
            "title": "User managed Identifier",
            "maxLength": 64,
            "minLength": 3,
            "type": "string",
            "description": "Only alphanumerical characters, dashes, hashes and underscores are allowed. User managed Identifier. If present, value must not be blank and must be unique within the company (case sensitive).",
            "example": "BE-Einstein_House-1"
          }
        }
      }
    },
    "parameters": {
      "predefinedLocationId": {
        "name": "id",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string",
          "format": "uuid"
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.smartrecruiters.com"
    }
  ]
}
```