Update a catalog from its repository
POST/api/pull_catalog/:local_name
Fetches the tracked ref, validates the incoming commit, and only then moves the checkout onto it.
The order is what makes a failed update safe: apply_catalog_fetch hard-resets the working tree, so validating after it had run would mean the rejected content had already replaced what was there.
Request
Responses
- 200
- 400
- 404
- 409
- 422
- 502
Successful Response
The incoming content failed validation, or the catalog has no repository; the existing checkout is unchanged
Catalog not found
This grid and the repository have both changed the same files; nothing was applied
Validation Error
Could not reach the repository