# Publish binary companion

```http
PUT /projects/{project_reference}/knowledge/assets/{asset_path}
```

Publish verified binary companion bytes. Requires project.files.write.

## Parameters

| Name                       | In     | Required | Description                                                                                                     |
| -------------------------- | ------ | -------- | --------------------------------------------------------------------------------------------------------------- |
| `project_reference`        | path   | Yes      | Project slug, UUID, or domain that identifies the project.                                                      |
| `asset_path`               | path   | Yes      |                                                                                                                 |
| `branch_id`                | query  | Yes      |                                                                                                                 |
| `x-vf-content-sha256`      | header | Yes      | SHA-256 of exact raw bytes, lowercase hexadecimal.                                                              |
| `x-vf-content-type`        | header |          | Retained asset MIME type; defaults to application/octet-stream. The wire MIME remains application/octet-stream. |
| `x-vf-expected-version-id` | header |          | Current selected immutable file version. Mutually exclusive with expected-absent.                               |
| `x-vf-expected-absent`     | header |          | Require no selected file. Mutually exclusive with expected-version-id.                                          |

## Responses

| Status | Description                                  |
| ------ | -------------------------------------------- |
| 200    | Verified immutable binary companion version. |
| 400    | Bad request                                  |
| 401    | Unauthorized                                 |
| 402    | Payment required                             |
| 403    | Forbidden                                    |
| 404    | Not found                                    |
| 409    | Conflict                                     |
| 413    | Payload too large                            |
| 500    | Server error                                 |
