# NOT_AN_ENVIRONMENT: 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.

Sent by the management API (400). The page: https://coho-cms.com/errors/not-an-environment/

## What to do

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

## The response

```json
{
  "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 error code: https://coho-cms.com/errors/
