purchase_order_add_attachment
Arguments
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
data | AddPurchaseOrderAttachmentInput! | Yes |
Return Type
AddPurchaseOrderAttachmentOutput
Mutation
mutation purchase_order_add_attachment(
$data: AddPurchaseOrderAttachmentInput!
) {
purchase_order_add_attachment(
data: $data
) {
request_id
complexity
attachment {
id
legacy_id
url
user_id
account_id
po_li_sku
description
filename
file_type
file_size
created_at
}
}
}Variables
{
"data": {
"po_id": "UHVyY2hhc2VPcmRlcjoxMjM0",
"url": "https://example.com/resource",
"description": "Customer requested expedited handling.",
"filename": "PO-100045",
"file_type": "application/pdf"
}
}Response
{
"data": {
"purchase_order_add_attachment": {
"request_id": "UmVjb3JkOjEyMzQ=",
"complexity": 100,
"attachment": {id: "T3JkZXI6MTIzNA==", order_number: "SO-100045"}
}
}
}