> For the complete documentation index, see [llms.txt](https://documentation.themembers.dev.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.themembers.dev.br/api-gerenciamento-de-usuarios/referencia-da-api/ranking.md).

# Ranking

{% hint style="info" %}
**Importante**: Sempre altere os dados entre chaves com o parâmetro respectivo.&#x20;

**Exemplo prático**:

No metodo estará descrevendo a rota com&#x6F;**:**

URL\_BASE/users/show-id/{id}/`{token_do_desenvolvedor}/{token_da_plataforma}`

Como ficará na prática:&#x20;

URL\_BASE/users/show-id/*<mark style="background-color:purple;">66caec96-...432</mark>*/*<mark style="color:green;background-color:purple;">66caec96-4749-...e07ed7</mark>*/*<mark style="background-color:purple;">66caec96-...4324</mark>*
{% endhint %}

## Adicionar pontos a um usuário específico

<mark style="color:orange;">`PUT`</mark> `URL_BASE/partners/ranking/add-points`

#### Request Body Json

{% code lineNumbers="true" %}

```json
{
    "user_id":"ID do usuário", //Ex:1feb1aa1-aa1d-11df-aa1e-1aa11b1aaaaa
    "points":"1",
    "developer_token": "token_do_desenvolvedor",
    "platform_token":"token_da_plataforma"
}
```

{% endcode %}

Possíveis retornos da requisição:

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "user_id": "",
    "tenant_id": "",
    "score": "",
    "posts": "",
    "comments": "",
    "replies": ""
}
```

{% endtab %}

{% tab title="400: Bad Request " %}

```javascript
{
    "error": []
}
```

{% endtab %}
{% endtabs %}
