Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POST Bulk events on Key Event API #310

Open
AndreiAlexandruParaschiv opened this issue May 24, 2024 · 0 comments
Open

POST Bulk events on Key Event API #310

AndreiAlexandruParaschiv opened this issue May 24, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@AndreiAlexandruParaschiv
Copy link
Contributor

AndreiAlexandruParaschiv commented May 24, 2024

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
When creating a key event, I would like to be able to post more events per site/ multi events, instead of making each time a POST request per event

Describe the solution you'd like
A clear and concise description of what you want to happen.

The API should accept a multi-object array

POST sites/{siteId}/key-events
Body:

[{
  "name": "Broken Internal Links",
  "type": "seo",
  "time": "2024-02-23T12:28:00.000Z"
}
,{
  "name": "FIX:Broken Links",
  "type": "seo",
  "time": "2024-03-23T19:28:00.000Z"
}] 

Currently, this fails with 500 ( "message": "Required field "name" is missing")

@AndreiAlexandruParaschiv AndreiAlexandruParaschiv added the enhancement New feature or request label May 24, 2024
@AndreiAlexandruParaschiv AndreiAlexandruParaschiv changed the title Multi events on Key Event API POST Multi events on Key Event API May 24, 2024
@AndreiAlexandruParaschiv AndreiAlexandruParaschiv changed the title POST Multi events on Key Event API POST Bulk events on Key Event API May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant