REST API 3. Basics cheat sheet (Ansible, Bash, Postman, and Python) for PATCH/PUT using NetBox
Hello my friend,
This is the third and the last article about REST API basics. In the previous articles, you have learned how to collect information and create/delete new entries. Today you will learn how to modify existing entries.

1
2
3
4
5 No part of this blogpost could be reproduced, stored in a
retrieval system, or transmitted in any form or by any
means, electronic, mechanical or photocopying, recording,
or otherwise, for commercial purposes without the
prior permission of the author.
Disclaimer
This article is a continuation of the two previous: GET and POST/DELETE. You should start with that to get the full picture.
What are we going to test?
You will learn how to use two requests:
- PATCH for modifying information for existing entries
- PUT for modifying information for existing entries
As you might remember, the interaction with the REST API is described by CRUD model, what stands for Create, Read, Update, and Delete. In this concept, Update operation is represented by PATCH and PUT HTTP methods. Later in this article you will figure out what is the difference between PATCH and PUT. It is significant.
To put the context, we will Continue reading

