# Upload Reputation Score

Create your customized reputation score first before uploading the data.

The minimum granularity of reputation score data is day-level. You may upload at daily basis.

## Pre-requisite

Make sure the `ReputationScore` [Grant Scope](/developers/grant-scope.md) is included when requesting authorization. You cannot share or retrieve reputation scores without approval from the user.

## API

<mark style="color:green;">`Post`</mark> `/api/account/party/dataReport`

**Header**

| Name          | Value                   |
| ------------- | ----------------------- |
| Content-Type  | `application/json`      |
| Authorization | `Bearer <access token>` |

**Parameters**

Compose all parameters below as a JSON. Check the request example for details.

<table><thead><tr><th width="157">Name</th><th width="113">Mandatory?</th><th>Description</th></tr></thead><tbody><tr><td><code>time</code></td><td>Y</td><td>The timestamp of the UTC day that indicates the data belongs to. The timestamp should be in seconds.<br>The data that happened within <mark style="color:blue;">7</mark> days will be accepted, otherwise rejected.</td></tr><tr><td><code>network</code></td><td>Y</td><td>Network ID, AKA blockchain ID.<br><code>Ethereum: 1</code><br><code>BSC: 56</code><br><code>Polygon: 137</code><br><code>Solana: -1</code></td></tr><tr><td><code>data</code></td><td>Y</td><td>All reputation scores</td></tr></tbody></table>

**Request Example**

```sh
curl --location 'https://$API_BASE_URL/api/account/party/dataReport' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer access_token'
--data '{
    "time": 1722355400,
    "network": 1,
    "data": {
        "Trade Volume": 1000000,
        "Active": 1,
        "Your Defined Score": 100,
        "note": "Your comment"
    }
}'
```

**Response**

{% tabs %}
{% tab title="Error Code" %}

```json
{
    "code": 10001,
    "message": "Incorrect timestamp"
}
/*
10001: Incorrect timestamp
203000: Incorrect parameters 
208004: Invalid access token
301002: User doesn't exist
208403: No user grant or revoked
*/
```

{% endtab %}

{% tab title="200" %}

```json
{
    "code": 0
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://id-docs.fsl.com/developers/reputation-score/upload-reputation-score.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
