Skip to main content
Question

​Add multiple Host via Rest API v1

  • Oct 20, 2022 11:30 AM UTC
  • 2 replies
  • 241 views

Forum|alt.badge.img+1

  Hello,

I need to add multiple hosts, but when i try to send this request, it responds with a 400 (Bad parameters):

Works only with 1 host (200 code):

What is the correct way to add them?

Thanks for your help.

2 replies

Forum|alt.badge.img+1
  • Author
  • Steward *
  • Oct 20, 2022 11:35 AM UTC

Sorry for my post, i cant create it when i use the json syntax. But i can show the capture.

 

 


Forum|alt.badge.img+3
  • Centreonian
  • Oct 20, 2022 1:12 PM UTC

Hello,

As of today, the API doesn’t handle the addition of multiple hosts in single request. You need to send one request per host you want to create.

Feel free to suggest this feature in the idea section.