return_add_attachment

Arguments

ArgumentTypeRequiredDefaultDescription
dataAddReturnAttachmentInput!Yes

Return Type

AddReturnAttachmentOutput

Mutation

mutation return_add_attachment(
  $data: AddReturnAttachmentInput!
) {
  return_add_attachment(
    data: $data
  ) {
    request_id
    complexity
    return {
      ...ReturnFragment
    }
  }
}

Variables

{
  "data": {
    "return_id": "abc123",
    "url": URL,
    "filename": "abc123",
    "file_type": "abc123",
    "description": "abc123",
    "return_item_id": "abc123"
  }
}

Response

{
  "data": {
    "return_add_attachment": {
      "request_id": "abc123",
      "complexity": 987,
      "return": Return
    }
  }
}