updateRepoExtensionFiles
Write an extension's files on a branch from the body, { "files": [{ "path", "content" }], "delete": true }, in one write: add new paths and rewrite the others. With "delete": true it also deletes every file at a path left out, so the extension then holds exactly the body's files; without it, files left out stay. Send every file of the folder you work in, package.json included, but not node_modules, package-lock.json, which each build resolves for itself, or files whose path starts with a dot, such as .npmrc. A file whose content doesn't change stays as it was, and one refused file refuses the whole sync. Answers the files as listRepoExtensionFilesAtBranch lists them. The body holds at most 4 MiB of JSON; change a larger extension's files one at a time. Commit afterwards, as with any edit.
/repos/{repo_id}/branches/{branch}/extensions/{name}/filesPath parameters
Request body JSON required
Returns
200
Success
400
InvalidRequest | RequestBodyTooDeep
One of the following:
- InvalidRequestEncoded
- RequestBodyTooDeepEncoded
403
Forbidden | ForbiddenOrigin | RequiresPersonalSession | RunBranchRequired
One of the following:
- ForbiddenEncoded
- ForbiddenOriginEncoded
- RequiresPersonalSessionEncoded
- RunBranchRequiredEncoded
404
BranchNotFound | ExtensionNotFound | RepoNotFound
One of the following:
- BranchNotFoundEncoded
- ExtensionNotFoundEncoded
- RepoNotFoundEncoded
409
ExtensionFileBlobNotUploaded | RecordInUse | RepoArchived
One of the following:
- ExtensionFileBlobNotUploadedEncoded
- RecordInUseEncoded
- RepoArchivedEncoded
413
ExtensionFileTooLarge | WriteTooLarge | RequestBodyTooLarge
One of the following:
- ExtensionFileTooLargeEncoded
- WriteTooLargeEncoded
- RequestBodyTooLargeEncoded
503
AttachmentStorageUnavailable | RepoBusy | SessionUnavailable | RateLimitUnavailable
One of the following:
- AttachmentStorageUnavailableEncoded
- RepoBusyEncoded
- SessionUnavailableEncoded
- RateLimitUnavailableEncoded