multipart/form-data so it can carry an archive file when needed. For git sources, set ref to change the tracked revision. For upload sources, send archive to replace the source content — the new tarball is extracted and re-registered inline. Other source-level fields are authoritative from source.yml and refresh on the next sync.curl --location --request PATCH 'https://mock.apidog.com/m1/1126461-0-default/sources/' \
--header 'Authorization: Bearer <token>' \
--form 'archive=@""' \
--form 'ref=""' \
--form 'globalRoles=""' \
--form 'force=""'{
"id": "string",
"sourceID": "string",
"name": "string",
"description": "string",
"authors": [
"string"
],
"homepage": "string",
"license": "string",
"type": "git",
"url": "string",
"ref": "string",
"owner": "string",
"lastSyncedAt": "string",
"lastSyncStatus": "ok",
"lastSyncError": "string"
}