Update a repository's settings
PATCH
Changes any of display_name (the label only; clone URLs and app addresses keep the provider's name), protected_paths, trust_owner_changes and allow_automation_changes; omitted fields are unchanged and an empty body is 400 EMPTY_UPDATE. Protected files and owner trust work on Syndai-hosted projects only (422 otherwise). An API key may only add protected patterns; loosening them or flipping owner trust is 403 HUMAN_APPROVAL_REQUIRED. allow_automation_changes needs a signed-in workspace owner and the current expected_updated_at (409 when stale). 404 for a repository that is not yours.
CustomerApiKeyheader
AuthorizationBearer <API Key>Customer API key sent as a bearer token
coding_repository_id*stringFormat
uuidcustomer_id?|nullapplication/json- body
allow_automation_changes?booleandisplay_name?string|nullexpected_updated_at?stringprotected_paths?array<string>trust_owner_changes?booleanRequest fulfilled, document follows
application/json- response
allow_automation_changes?booleanDefault
falsecapabilities*clone_url*stringcreated_at*stringFormat
date-timecustomer_id?|nulldefault_branch*stringdisplay_name?string|nullfull_name*stringgithub_deploy?|nullhtml_url?string|nullid*stringFormat
uuidprotected_paths*array<string>provider*stringrepo_url*stringstatus*stringstore?|nulltrust_owner_changes?booleanDefault
trueupdated_at*stringFormat
date-timecurl -X PATCH 'https://api.syndai.ai/api/v1/external/coding/repos/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "allow_automation_changes": false, "capabilities": {}, "clone_url": "string", "created_at": "2019-08-24T14:15:22Z", "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e", "default_branch": "string", "display_name": "string", "full_name": "string", "github_deploy": { "at": "2019-08-24T14:15:22Z", "environment": "string", "state": "string", "url": "string" }, "html_url": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "protected_paths": [ "string" ], "provider": "string", "repo_url": "string", "status": "string", "store": { "needs": "string", "needs_owner": true, "state": "string", "version": "string" }, "trust_owner_changes": true, "updated_at": "2019-08-24T14:15:22Z"}