barrycarey / SnipeSharp

A c# wrapper for the Snipe IT API
25 stars 30 forks source link

Unable to link company to asset #2

Closed fordster78 closed 6 years ago

fordster78 commented 6 years ago

Hi,

When I am creating a new asset, I am trying to link the company to it. It does not give any error messages or exceptions in Visual studio and adds the asset in to snipe but doesn't include the company. I have used postman which is an api tester application and it works fine. I think the issue is in the asset models cs file. I have created a pull request #1 Update Asset Model. This changes the OptionalRequestHeader from "Company" to "Company_id" which is what the API is looking for.

Thanks

fordster78 commented 6 years ago

This has been merged by @barrycarey . Can be closed