# NFT RP Upgrade

## NFT RP Upgrade

<mark style="color:green;">`POST`</mark> `/api/v1/oauth2-app/nft/upgrade_rp`

**Headers：**&#x20;

appid: application id

appkey: application key

#### Request Body

| Name                                                | Type    | Description                         |
| --------------------------------------------------- | ------- | ----------------------------------- |
| contract\_address<mark style="color:red;">\*</mark> | String  | contract address                    |
| eth\_address<mark style="color:red;">\*</mark>      | String  | eth address                         |
| rp<mark style="color:red;">\*</mark>                | Number  | 1                                   |
| tx\_await<mark style="color:red;">\*</mark>         | Boolean | true                                |
| is\_increase<mark style="color:red;">\*</mark>      | Boolean | true - RP Increment, false-RP value |

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

```javascript
{
    "code": 200,
    "data": {
        "tx_hash": "0x2ad943553c66de0bd49204f20e3478ddd1280b4bcf97618be75b79f43982fb85"
    },
    "msg": ""
}
//is_increase =true
{
    "code": 200,
    "data": {
        "tx_hash": [
            {
                "address": "0x6282bc1371BFB5370Cd53eAc081B2a860AC85c47",
                "err": "",
                "hash": "0xacd39ae610e8590c9c8853288056df94e3a210e3ad602863bd1c1f05617c1d5f"
            },
            {
                "address": "0xf1181bd15E8780B69a121A8D8946cC1C23972Bd4",
                "err": "",
                "hash": "0xe2d7b1d74f25c4ef4d0767cc73c9754c00854fbee72e071492e871b8e60f3d60"
            }
        ]
    },
    "msg": ""
}
```

{% endtab %}
{% endtabs %}
