Skip to main content

Manual hold expiry too far

typehttps://docs.frem.sh/reference/api/errors/manual-hold-expiry-too-far
HTTP status422 Unprocessable Content

What it means

The request switches a merge hold on one pull request from a release condition to a manual release (release_manual: true), but the hold expires more than 7 days ahead. A hold with a release condition may run up to 30 days; a hold a person releases may run at most 7. fremforge does not shorten the expiry for you.

Example detail messages returned with this error:

  • A manual hold may expire at most 7 days ahead, and this hold expires 2026-12-02T12:00:00.000Z. Give an expires_at (or duration_minutes) within 7 days in the same request to switch it to a manual release.

What to do

Send the switch again with a new expiry within 7 days in the same request, for example {"release_manual": true, "duration_minutes": 10080}. The response shows the new expiry. Or keep the release condition, and the hold may run up to 30 days.

Response shape

All fremforge API errors are RFC 9457 problem+json:

{
  "type": "https://docs.frem.sh/reference/api/errors/manual-hold-expiry-too-far",
  "title": "Unprocessable Content",
  "status": 422,
  "detail": "..."
}

Branch on type, not on title or detail - those are human-readable and may be reworded.