# Update Step

```swift
BiometridStandard.getInstance().updateStep(processId: processId, data: data, callback: self)
```

| Parameter                     | Description                |
| ----------------------------- | -------------------------- |
| processId: **String**         | process id                 |
| data: **\[String: Any]**      | Form data (key and values) |
| callback: **ProcessCallback** | callback                   |

## Implementation example

```swift
import UIKit
import BiometridStandardSDK

class ViewController: UIViewController, ProcessCallback {

    override func viewDidLoad() {
        super.viewDidLoad()
    }
    
    @IBAction func updateStepBtn(_ sender: Any) {
    
        let formBuilder = ["account_type": 123456, "account_holder": 1,
                           "client_account_purpose": "P01", "funds_origin": "OU",
                           "other_funds_origin": 1, "file_doc_personal_data": "base64",
                           "accept_terms_conditions": 1, "file_doc_pre_cont": "base64",
                           "date_of_accept_term_conditions": "01/01/2019", "name": "andre",
                           "surname": "barnabe", "client_email": "andre.barnabe@polygon.pt",
                           "client_phonenumber": "910000000", "personal_data_aut1": 1,
                           "client_nif": "110000000", "personal_data_aut2": 1,
                           "telef_verif_ind": 1, "date_of_phone_validation": "01/01/2019"] as [String : Any]
              
       BiometridStandard.getInstance().updateStep(processId: processId, data: formBuilder, callback: self)             
                           
    }
    
    func updateStepCallback(status: Bool, response: String?, error: Errors?) {
        print("status update step", status)
        if error != nil {
            print(error as Any)
            return
        }
        print("response update step", response as Any)
    }
}
```

## Callback params

| Parameter             | Description                   |
| --------------------- | ----------------------------- |
| status: **Bool**      | Method request status         |
| response: **String?** | All the response from the api |
| error: **Errors?**    | Errors associated enum        |
