api post
2 TopicsPOST multiple object single curl
Hello, I'd like to be able to POST multiple object in a single requests. Eg, 2 datagroup { "records": [ { "data": "Office", "name": "12.12.12.12/32" } ], "type": "ip", "selfLink": "https://localhost/mgmt/tm/ltm/data-group/internal/~Common~whitelist_ip?ver=13.0.0", "generation": 1, "fullPath": "/Common/whitelist_ip", "partition": "Common", "name": "whitelist_ip", "kind": "tm:ltm:data-group:internal:internalstate" }, { "records": [ { "data": "whatever", "name": "23.23.23.23/32" } ], "type": "ip", "selfLink": "https://localhost/mgmt/tm/ltm/data-group/internal/~Common~block_ip?ver=13.0.0", "generation": 1, "fullPath": "/Common/block_ip", "partition": "Common", "name": "block_ip", "kind": "tm:ltm:data-group:internal:internalstate" } Doing it for a single object work but when I try to encapsulate both in {} or { "items": [ ] } , it doesn't work : {"code":403,"message":"Operation is not supported on component /ltm/data-group/internal.","errorStack":[],"apiError":1} Is there a way to POST an existing object and replace it ? Or I have to PATCH a specific property ? Ideally I'd like to keep my full JSON object in GIT, so any time i have a change, I just need to update it and do the update. If I have no choice to use PATCH and only reset the specify property it's gonna be more complex.Solved1.2KViews0likes2CommentsHelp with POST Content Length HTTP Monitor
Hello, this is what I have for a POST. When the content length is 0 I get a 200 back. When it's something else I get 415 unsupported media type. I'm not sure if there's something wrong with the way it's written or if I just have the wrong content length in there. The application guys are stating the 0 is causing some weird errors in the logs so I'm trying to get a 200 back with the proper length. POST /api/ChunkingService/CacheChunk HTTP/1.1\r\nHost: obcs.uat.alc.ca\r\nConnection: /\r\nContent-Length: 0\r\nContent-Type: application\json\r\n\r\n{\"TerminalId\":\"LBTest\",\"Value\":\"_\",\"RetailerId\":99999999}369Views0likes2Comments