### Parameters

| Parameter | Type | Required |
| --- | --- | --- |
| updateRepresentativeId | UUID | true |
| representative | Object | true |
| representative.document_expiration_date | String | false |
| representative.document_issue_date | String | false |
| representative.document_number | String | false |
| representative.citizenship | String | false |
| representative.date_of_birth | String | false |
| representative.email | String | false |
| representative.first_name | String | false |
| representative.is_signer | Boolean | false |
| representative.last_name | String | false |
| representative.job_title | String | false |
| representative.ownership_percentage | Float | false |
| representative.passport_number | String | false |
| representative.phone | String | false |
| representative.residential_address | String | false |
| representative.residential_address2 | String | false |
| representative.residential_city | String | false |
| representative.residential_country | String | false |
| representative.residential_postal_code | String | false |
| representative.residential_state_province_region | String | false |
| representative.responsibility | String | false |
| representative.tax_number | String | false |

### GraphQL Schema

```graphql
type Mutation {
  updateRepresentative(representative: UpdateRepresentativeInput, updateRepresentativeId: UUID): UpdateRepresentativeResponse
}

input UpdateRepresentativeInput {
  cert_expiration_date: String
  cert_issue_date: String
  cert_no: String
  citizenship: String
  date_of_birth: String
  email: String
  first_name: String
  is_signer: Boolean
  last_name: String
  job_title: String
  ownership_percentage: Float
  passport_number: String
  phone: String
  residential_address: String
  residential_address2: String
  residential_city: String
  residential_country: String
  residential_postal_code: String
  residential_state_province_region: String
  responsibility: String
  tax_number: String
}

type UpdateRepresentativeResponse {
  success: Boolean
  message: String
}
```

query

string

Defaults to {}

# ``200      200

object

data

object

updateRepresentative

boolean

Defaults to true

# ``400      400

const axios = require('axios');

let data = JSON.stringify({

query: `mutation updateRepresentative(

$representative: UpdateRepresentativeInput,

$updateRepresentativeId: UUID

) {

updateRepresentative(

representative: $representative,

id: $updateRepresentativeId

)

}`,

variables: {

updateRepresentativeId: "YOUR_UPDATE_REPRESENTATIVE_ID",

representative: {

document_expiration_date: null,

document_issue_date: null,

document_number: null,

citizenship: null,

date_of_birth: null,

email: null,

first_name: null,

is_signer: null,

last_name: null,

job_title: null,

ownership_percentage: null,

passport_number: null,

phone: null,

residential_address: null,

residential_address2: null,

residential_city: null,

residential_country: null,

residential_postal_code: null,

residential_state_province_region: null,

responsibility: null,

tax_number: null

}

}
});

let config = {

method: 'post',

maxBodyLength: Infinity,

url: 'https://sandbox.external.routefusion.com/graphql',

headers: {

'Content-Type': 'application/json',

'Authorization': 'Bearer YOUR_ACCESS_TOKEN'

},

data: data
};

axios.request(config)
  .then((response) => {
    console.log(JSON.stringify(response.data, null, 2));
  })
  .catch((error) => {
    console.error(error);
  });

```

{
  "data": {
    "updateRepresentative": true
  }
}
