---
title: "Adds a file attachment to an existing referee"
method: POST
path: "/Entity/RefereeAttachment"
tags: ["Entity"]
---

# Adds a file attachment to an existing referee

`POST /Entity/RefereeAttachment`

The attachment's Name field must be less than 255 characters.

The attachment's type will be automatically set depending on the Referee's type. ICE Contact referees do not support attachments.
            
The FileExtension must match the file contents and be a valid Windows extension, preceded by a full stop. Infinity will not 
be able to open the file if the extension doesn't match and it could cause issues within Infinity.

The attachment's Content must not exceed the max upload size configured in Infinity.
            
The max upload size can be retrieved from the /Reference/MaxUploadSize method (In KB)

## Request body

- RefereeAttachmentRequest
  - `Name` string, required
  - `Content` string, byte, required — A Base64 document to attach to the candidate. The document cannot exceed the max upload size configured in Infinity.
  - `RefereeId` integer, required
  - `FileExtension` string, required

## Response `200`

OK - Created ID

- integer

## Other responses

- `400` — BadRequest
- `401` — Unauthorized
- `404` — NotFound

---

[API](https://skmtc.dev/vslcloud/apis/infinity-api.md) · [All operations](https://skmtc.dev/vslcloud/apis/infinity-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/vslcloud/infinity-api/revisions/54661781612a/schema)
