Mutation
mutation ChangeJobStatus($id: ID!, $input: ChangeJobStatusInput!) {
changeJobStatus(id: $id, input: $input) {
result {
id
number
jobTypes
valueCents
currency
laborHours
}
errors {
message
code
fields
path
}
}
}Variables
{
"id": "id",
"input": {
"status": "string"
}
}Response
{
"data": {
"changeJobStatus": {
"result": {
"id": "id",
"number": 1,
"jobTypes": [
"string"
],
"valueCents": 1,
"currency": "string",
"laborHours": "value"
},
"errors": [
{
"message": "string",
"code": "string",
"fields": [
"string"
],
"path": [
"string"
]
}
]
}
}
}Mutations
changeJobStatus
MUTATION
changeJobStatus(id: ID!, input: ChangeJobStatusInput!): ChangeJobStatusResult!Arguments
id
ID!
required
input
required
Returns
result
The successful result of the mutation
errors
[MutationError!]!
Any errors generated, if the mutation failed
Mutation
mutation ChangeJobStatus($id: ID!, $input: ChangeJobStatusInput!) {
changeJobStatus(id: $id, input: $input) {
result {
id
number
jobTypes
valueCents
currency
laborHours
}
errors {
message
code
fields
path
}
}
}Variables
{
"id": "id",
"input": {
"status": "string"
}
}Response
{
"data": {
"changeJobStatus": {
"result": {
"id": "id",
"number": 1,
"jobTypes": [
"string"
],
"valueCents": 1,
"currency": "string",
"laborHours": "value"
},
"errors": [
{
"message": "string",
"code": "string",
"fields": [
"string"
],
"path": [
"string"
]
}
]
}
}
}