> For the complete documentation index, see [llms.txt](https://devcenter.unico.io/unico-people/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://devcenter.unico.io/unico-people/unico-people-v1/apis/arquivos/upload-file.md). Agents can also search and read this documentation through its [MCP server](https://devcenter.unico.io/unico-people/~gitbook/mcp).

# Upload file

API para realizar o upload temporário de um arquivo e utiliza-lo na criação de um candidato.

<mark style="color:yellow;">`PUT`</mark> \ <mark style="color:$primary;">**Url Produção:**</mark> `https://api.acessorh.com.br`\ <mark style="color:$primary;">**Url Homologação:**</mark> `https://api.rh.homolog.acesso.io`\ <mark style="color:$primary;">**Endpoint:**</mark> `/v1/upload`

### **Headers**

| Key                                             | Type   | Description                                                   |
| ----------------------------------------------- | ------ | ------------------------------------------------------------- |
| Authorization<mark style="color:red;">\*</mark> | string | Token de acesso adquirido pela plataforma Identity *(bearer)* |

### **Request Body**

| Key                                    | Type   | Description                        |
| -------------------------------------- | ------ | ---------------------------------- |
| file<mark style="color:red;">\*</mark> | string | Path do arquivo que será carregado |

### Exemplo de requisição

```json
curl --location --request PUT 'https://api.acessorh.com.br/v1/upload' \
--header 'Authorization: Bearer token de auth' \
--form 'file=@"/Users/seu_usuario/sua_pasta/seu_arquivo.pdf"'
```

### Exemplo de response

{% code title="200 OK" %}

```json
"bcaaf3a8-b682-4809-83a7-83a73e867cb6"
```

{% endcode %}

{% hint style="success" %}
O UID informado no response é o que será usado na requisição do [**create position.**](https://devcenter.unico.io/unico-people/unico-people-v1/apis/posicoes/create-position.md)
{% endhint %}
