Adding EXTERNAL endpoints as an array #362
-
|
Hi and thanks for a great app @DCMattyG ! Would it be possible to update the '/api/spaces/{space}/blocks/{block}/externals/{external}/subnets/{subnet}/endpoints' to accept an array of endpoints or perhaps create a new one that does ? Business case would be when adding several endpoints, to be able to batch them instead of doing one POST per endpoint to reduce the amount of requests made to the API. I.e. if 200 endpoints, 10 requests instead of 200. Or, perhaps accept them as an array of objects when creating a subnet? As the example of a successful 201 response from '/api/spaces/{space}/blocks/{block}/externals/{external}/subnets' |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
Hi @gummigroda, always love it when people reach out and of course I'll do what I can to help make your life easier! In looking at your ask above, have you considered this flow instead:
I think this workflow should get you what you are asking for with only 3 API calls instead of 10's or 100's. Please let me know what you think, otherwise we can see about modifying the existing API's to meet your needs. |
Beta Was this translation helpful? Give feedback.
-
|
Why did I not see that ? Sorry @DCMattyG, I've should just RTM.. Thanks! |
Beta Was this translation helpful? Give feedback.

Sure thing @gummigroda!
If you navigate to the Swagger docs, you'll see the PUT for
/api/spaces/{space}/blocks/{block}/externals/{external}/subnets/{subnet}/endpointsHere you can append to the list you get from the GET and perform a PUT operation with multiple new entries.