Mutation
mutation CreateJobBlock($input: CreateJobBlockInput!) {
createJobBlock(input: $input) {
result {
id
position
name
projectTradeIds
tradeHeadcounts
productionValueCents
}
errors {
message
code
fields
path
}
}
}Variables
{
"input": {
"position": 1,
"jobId": "id"
}
}Response
{
"data": {
"createJobBlock": {
"result": {
"id": "id",
"position": 1,
"name": "string",
"projectTradeIds": [
"id"
],
"tradeHeadcounts": "value",
"productionValueCents": 1
},
"errors": [
{
"message": "string",
"code": "string",
"fields": [
"string"
],
"path": [
"string"
]
}
]
}
}
}Mutations
createJobBlock
MUTATION
createJobBlock(input: CreateJobBlockInput!): CreateJobBlockResult!Arguments
input
required
Returns
result
The successful result of the mutation
errors
[MutationError!]!
Any errors generated, if the mutation failed
Mutation
mutation CreateJobBlock($input: CreateJobBlockInput!) {
createJobBlock(input: $input) {
result {
id
position
name
projectTradeIds
tradeHeadcounts
productionValueCents
}
errors {
message
code
fields
path
}
}
}Variables
{
"input": {
"position": 1,
"jobId": "id"
}
}Response
{
"data": {
"createJobBlock": {
"result": {
"id": "id",
"position": 1,
"name": "string",
"projectTradeIds": [
"id"
],
"tradeHeadcounts": "value",
"productionValueCents": 1
},
"errors": [
{
"message": "string",
"code": "string",
"fields": [
"string"
],
"path": [
"string"
]
}
]
}
}
}