---
agentTools:
  projectIndex: https://sched.readme.io/llms.txt
---

# Update Location

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "sched.dev",
    "description": "Scheduling API",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api.sched.dev",
      "description": "API Server"
    },
    {
      "url": "https://sandbox-api.sched.dev",
      "description": "Sandbox API Server"
    }
  ],
  "paths": {
    "/v1/locations/{location_id}": {
      "put": {
        "tags": [
          "Locations"
        ],
        "summary": "Update Location",
        "operationId": "update_location_v1_locations__location_id__put",
        "parameters": [
          {
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Location Id"
            },
            "name": "location_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ILocationUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Update a location",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ILocationRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2ClientCredentialsBearer": [
              "locations:write"
            ]
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "ILocationRead": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name",
            "description": "The name of the location"
          },
          "description": {
            "type": "string",
            "title": "Description",
            "description": "The description of the location"
          },
          "image_url": {
            "type": "string",
            "title": "Image Url",
            "description": "The image URL of the resource"
          },
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "pic": {
            "type": "string",
            "title": "Pic"
          }
        },
        "type": "object",
        "required": [
          "name",
          "description",
          "id"
        ],
        "title": "ILocationRead"
      },
      "ILocationUpdate": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name",
            "description": "The name of the location"
          },
          "description": {
            "type": "string",
            "title": "Description",
            "description": "The description of the location"
          },
          "image_url": {
            "type": "string",
            "title": "Image Url",
            "description": "The image URL of the resource"
          }
        },
        "type": "object",
        "required": [
          "name",
          "description"
        ],
        "title": "ILocationUpdate"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      }
    },
    "securitySchemes": {
      "OAuth2ClientCredentialsBearer": {
        "type": "oauth2",
        "flows": {
          "password": {
            "scopes": {},
            "tokenUrl": "/v1/auth/token"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 103,
      "1": 14,
      "2": 106,
      "3": 94,
      "4": 33,
      "5": 109,
      "6": 146,
      "7": 0,
      "8": 49,
      "9": 64,
      "10": 212,
      "11": 226
    }
  }
}
```