# Star a file

Star one file for the caller only — nobody else sees another person's stars. Answers {starred: true}; starring twice is the same answer. The files listing carries each file's starred for whoever reads it.

Access class: `workspace`.

## Endpoint

`PUT /v1/files/{id}/star`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| id | path | string | Yes |

## Request body

Content type: `application/json`.

```json
{}
```

## Responses

### 200

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "starred": true
  }
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
