Error code

Only environments can be repointed

You asked to point a ref at another one, and only environments are pointers. A branch or tag is content.

Ø100 · 20 teethfree one way, locked the otherABC
Fig. 03 Ratchet and pawlThe wheel turns freely one way, and the pawl stops it turning back.
Code
NOT_AN_ENVIRONMENT
Management API
400

What to do

Promote to an environment, or merge or tag to change a branch.

The response

Every refusal is an application/problem+json document. Its detail says what went wrong in that request; its type is this page.

{
  "code": "NOT_AN_ENVIRONMENT",
  "type": "https://coho-cms.com/errors/not-an-environment",
  "title": "Only environments can be repointed",
  "status": 400,
  "detail": "What went wrong in this request, in a sentence.",
  "instance": "/v1/projects/…"
}

Every code

The error codes, in a table with a filter.