Forum Discussion

The_Doc's avatar
The_Doc
Ultimate Partner
2 years ago
Solved

API Question - POST Item

Hi Folks   Thought I might get lucky with an API knowledgeable user able to answer this question quickly.   I am an API developer and GET and POST many things via the API, however, I have never P...
  • Mike_James's avatar
    2 years ago

    Hi The_Doc , updating existing items is done via a PUT operation. According to https://developer.myob.com/api/myob-business-api/v2/inventory/item/, "Items shown with [tick] are required when posting or puting data".

     

    It would pay to expand the page display to show all the element notes. (Click the link at the end - "To view the descriptions for the elements you can either hover (over) any attribute to reveal details or click here to show all details")

     

    You'll definitely need to include the row version, which should be obtained immediately prior to the PUT operation. I'm not sure that all the other UIDs (ticked) are required, but a trial (using Postman?) should confirm that.