Mutations
createPurchaseOrderLine
Creates a new line item on a purchase order.
MUTATION
createPurchaseOrderLine(input: CreatePurchaseOrderLineInput!): CreatePurchaseOrderLineArguments
input
required
Returns
purchaseOrderLine
reorderedPurchaseOrderLines
Mutation
mutation CreatePurchaseOrderLine($input: CreatePurchaseOrderLineInput!) {
createPurchaseOrderLine(input: $input) {
purchaseOrderLine {
Attributes {
Created
Etag
LastSessionId
Updated
_IonValueCount
_ValueCount
}
LastSessionId
_AttributedPartsCount
_AttributedUsersCount
_AttributesCount
_CommentsCount
}
reorderedPurchaseOrderLines {
Attributes {
Created
Etag
LastSessionId
Updated
_IonValueCount
_ValueCount
}
LastSessionId
_AttributedPartsCount
_AttributedUsersCount
_AttributesCount
_CommentsCount
}
}
}Variables
{
"input": {
"purchaseOrderId": 1
}
}Response
{
"data": {
"createPurchaseOrderLine": {
"purchaseOrderLine": {
"Attributes": [
{
"Created": "value",
"Etag": "string",
"LastSessionId": "string",
"Updated": "value",
"_IonValueCount": 1,
"_ValueCount": 1
}
],
"LastSessionId": "string",
"_AttributedPartsCount": 1,
"_AttributedUsersCount": 1,
"_AttributesCount": 1,
"_CommentsCount": 1
},
"reorderedPurchaseOrderLines": [
{
"Attributes": [
{
"Created": "value",
"Etag": "string",
"LastSessionId": "string",
"Updated": "value",
"_IonValueCount": 1,
"_ValueCount": 1
}
],
"LastSessionId": "string",
"_AttributedPartsCount": 1,
"_AttributedUsersCount": 1,
"_AttributesCount": 1,
"_CommentsCount": 1
}
]
}
}
}Was this page helpful?
⌘I
Mutation
mutation CreatePurchaseOrderLine($input: CreatePurchaseOrderLineInput!) {
createPurchaseOrderLine(input: $input) {
purchaseOrderLine {
Attributes {
Created
Etag
LastSessionId
Updated
_IonValueCount
_ValueCount
}
LastSessionId
_AttributedPartsCount
_AttributedUsersCount
_AttributesCount
_CommentsCount
}
reorderedPurchaseOrderLines {
Attributes {
Created
Etag
LastSessionId
Updated
_IonValueCount
_ValueCount
}
LastSessionId
_AttributedPartsCount
_AttributedUsersCount
_AttributesCount
_CommentsCount
}
}
}Variables
{
"input": {
"purchaseOrderId": 1
}
}Response
{
"data": {
"createPurchaseOrderLine": {
"purchaseOrderLine": {
"Attributes": [
{
"Created": "value",
"Etag": "string",
"LastSessionId": "string",
"Updated": "value",
"_IonValueCount": 1,
"_ValueCount": 1
}
],
"LastSessionId": "string",
"_AttributedPartsCount": 1,
"_AttributedUsersCount": 1,
"_AttributesCount": 1,
"_CommentsCount": 1
},
"reorderedPurchaseOrderLines": [
{
"Attributes": [
{
"Created": "value",
"Etag": "string",
"LastSessionId": "string",
"Updated": "value",
"_IonValueCount": 1,
"_ValueCount": 1
}
],
"LastSessionId": "string",
"_AttributedPartsCount": 1,
"_AttributedUsersCount": 1,
"_AttributesCount": 1,
"_CommentsCount": 1
}
]
}
}
}