Mutation
mutation LeadChangeStatus($id: String!, $status: LeadStatusInput!) {
leadChangeStatus(id: $id, status: $status) {
lead {
attribution
company
completedCallCount
consent {
agreed
at
disclosure
grantedAt
id
kind
}
createdAt
daysSinceCreated
}
userErrors {
code
field
message
}
}
}Variables
{
"id": "string",
"status": "attended"
}Response
{
"data": {
"leadChangeStatus": {
"lead": {
"attribution": "value",
"company": "string",
"completedCallCount": "value",
"consent": [
{
"agreed": true,
"at": "string",
"disclosure": "string",
"grantedAt": "string",
"id": "string",
"kind": "aura_sms"
}
],
"createdAt": "string",
"daysSinceCreated": "value"
},
"userErrors": [
{
"code": "string",
"field": [
"string"
],
"message": "string"
}
]
}
}
}Mutations
leadChangeStatus
Change lead status
Business-meaningful mutation (not generic update).
Before the lead books, its form answers set its status. After it books, its calls set it. You can still write a status here, and it is saved as sent, but Aura's status sync later puts back the status its calls give. The sync checks up to 100 of an organization's leads each hour, so in a large organization this can take days. To change it for good, change the call's outcome. A won call beats a disqualifying form: while the lead's current call is won, the sync never puts back `disqualified`.
@example ```graphql
mutation {
leadChangeStatus(id: "lead_id", status: qualified) {
lead {
id
status
updatedAt
}
userErrors {
message
}
}
}
```
MUTATION
leadChangeStatus(id: String!, status: LeadStatusInput!): LeadUpdatePayload!Arguments
id
String!
required
status
required
Returns
lead
userErrors
[UserError!]!
Mutation
mutation LeadChangeStatus($id: String!, $status: LeadStatusInput!) {
leadChangeStatus(id: $id, status: $status) {
lead {
attribution
company
completedCallCount
consent {
agreed
at
disclosure
grantedAt
id
kind
}
createdAt
daysSinceCreated
}
userErrors {
code
field
message
}
}
}Variables
{
"id": "string",
"status": "attended"
}Response
{
"data": {
"leadChangeStatus": {
"lead": {
"attribution": "value",
"company": "string",
"completedCallCount": "value",
"consent": [
{
"agreed": true,
"at": "string",
"disclosure": "string",
"grantedAt": "string",
"id": "string",
"kind": "aura_sms"
}
],
"createdAt": "string",
"daysSinceCreated": "value"
},
"userErrors": [
{
"code": "string",
"field": [
"string"
],
"message": "string"
}
]
}
}
}