---
updatedAt: 2026-02-12T21:01:17.000Z
agentTools:
  siteIndex: https://developer.jamf.com/llms.txt
  projectIndex: https://developer.jamf.com/jamf-pro/v11.14.0/llms.txt
---

# Update source

Updates an external patch source object

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Title Editor",
    "description": "External patch source for Jamf Pro",
    "version": "2.0"
  },
  "x-readme": {
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "servers": [
    {
      "url": "https://yourServer.appcatalog.jamfcloud.com/v2"
    }
  ],
  "tags": [
    {
      "name": "sources"
    }
  ],
  "paths": {
    "/sources/{id}": {
      "put": {
        "tags": [
          "sources"
        ],
        "summary": "Update source",
        "description": "Updates an external patch source object",
        "operationId": "updateSource",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "id of source object",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/source"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful response - Source updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/source"
                }
              }
            }
          },
          "404": {
            "description": "Target source object does not exist",
            "content": {}
          }
        },
        "security": [
          {
            "bearer": [
              "write:preferences"
            ]
          }
        ],
        "x-codegen-request-body-name": "body"
      }
    }
  },
  "components": {
    "schemas": {
      "source": {
        "required": [
          "name",
          "url"
        ],
        "type": "object",
        "properties": {
          "sourceId": {
            "type": "integer",
            "example": 0
          },
          "name": {
            "type": "string",
            "example": "Title Editor"
          },
          "url": {
            "type": "string",
            "example": "https://jamf-patch.jamfcloud.com"
          },
          "authScheme": {
            "type": "string",
            "example": "Bearer"
          },
          "username": {
            "type": "string",
            "example": null
          },
          "password": {
            "type": "string",
            "example": null
          }
        }
      }
    },
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  }
}
```