# Update static account

## Update a static virtual account

<mark style="color:orange;">`PUT`</mark> `https://api-fsdh360-test.fsdhgroup.com/api/v1/virtualaccounts/static`

To update a static virtual account the below Parameters should be provided.

Attention should be given to parameters marked <mark style="color:red;">\*</mark>`required`.

#### Query Parameters

| Name        | Type   | Description        |
| ----------- | ------ | ------------------ |
| API-version | String | The version of API |

#### Request Body

| Name                                                         | Type   | Description               |
| ------------------------------------------------------------ | ------ | ------------------------- |
| Account name <mark style="color:red;">\*</mark>              | String | Clients account name      |
| BVN<mark style="color:red;">\*</mark>                        | String | Bank verification number  |
| Virtual account number<mark style="color:red;">\*</mark>     | String | Virtual account number    |
| Collection account number <mark style="color:red;">\*</mark> | String | Collection account number |

{% tabs %}
{% tab title="201: Created Created" %}

```javascript
{
  "accountNumber": "string",
  "accountName": "string",
  "collectionAccountNumber": "string",
  "bvn": "string",
  "accountType": 1,
  "accountCurrency": "string"
}
```

{% endtab %}

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

```javascript
```

{% endtab %}

{% tab title="500: Internal Server Error Internal Server Error" %}

```javascript
```

{% endtab %}
{% endtabs %}

{% code title="Request body" %}

```json
{
  "accountName": "string",
  "bvn": "string",
  "virtualAccountNumber": "string",
  "collectionAccountNumber": "string"
}
```

{% endcode %}

<figure><img src="https://1085485156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCvMerIdO3ETvUtkUdDyc%2Fuploads%2FkAWe0tbwsa5DbucIVlIL%2FupdateStaticVirtualAccount.png?alt=media&#x26;token=22d0d792-f941-4adc-9c80-787605be93ef" alt=""><figcaption><p>Curl</p></figcaption></figure>

<figure><img src="https://1085485156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCvMerIdO3ETvUtkUdDyc%2Fuploads%2FJNiZQ0mbPKmmrYqvN7mz%2FupdateStaticVirtualAccount2.png?alt=media&#x26;token=13ecfc7b-7300-4e9c-92e6-49f8b421b889" alt=""><figcaption><p>Server response</p></figcaption></figure>

#### Response body

Inputting the correct parameters should give you a <mark style="color:green;">`201`</mark>`: Success` response which will populate the below Success details. Also specified are possible responses from the request.

{% tabs %}
{% tab title="201: Success" %}

```json
{
  "accountNumber": "string",
  "accountName": "string",
  "collectionAccountNumber": "string",
  "bvn": "string",
  "accountType": 1,
  "accountCurrency": "string"
}
```

{% endtab %}

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

```json
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string"
}
```

{% endtab %}
{% endtabs %}

{% code title="Request URL" %}

```
https://api-fsdh360.fsdhgroup.com/api/v1/virtualaccounts/static 
```

{% endcode %}
