deleteRepresentative

Parameters

Parameter Type Required
id UUID true

GraphQL Schema

mutation DeleteRepresentative($deleteRepresentativeId: UUID) {
  deleteRepresentative(id: $deleteRepresentativeId)
}

query

string

Defaults to {}

``200 200

object

data

object

deleteRepresentative

boolean

Defaults to true


NodeShell

xxxxxxxxxx

const token = process.env.RF_KEY;

const axios = require('axios');

let data = JSON.stringify({

query: `mutation deleteRepresentative (

$id: UUID

) {

deleteRepresentative (

id: $id

)

}`,

variables: {"id":"c1ad6c4f-ae6b-4f93-bede-3cee4aa1e5fb"}

});

let config = {

method: 'post',

maxBodyLength: Infinity,

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

headers: {

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

'Authorization': 'Bearer {{token}}'

},

data : data

};

axios.request(config)
.then((response) => {

console.log(JSON.stringify(response.data));

})
.catch((error) => {

console.log(error);

});

xxxxxxxxxx

{

"data": {

"deleteRepresentative": true

}

}