- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
05-11-2022 05:43 PM
Hi!
I'm using Postman to create an address object using Rest API.
This is what I'm posting:
*https://10.46.169.141/restapi/v9.1/Objects/Addresses?name={{"My-Address"}}&location=vsys&vsys=vsys1
This is my body:
09-12-2022 04:02 AM
Hi @sconejo, could it have been the braces {{}} being mixed up between the URL and the JSON? I would use variables in both or neither, and probably choose to use a variable in both. This works for example:
https://{{host}}/restapi/v9.1/Objects/Addresses?name={{object-name}}&location=vsys&vsys=vsys1
{
"entry": {
"@name": "{{object-name}}",
"ip-netmask": "8.8.8.8",
"description": "My test address"
}
}
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!