docs
docs copied to clipboard
Issue with Create a new calendar via API section
Describe the bug
To create a new calendar you must specify "ID": 0 or "ID":""
document states:
*if the ID exists, it will update the existing calendar, otherwise it will be created it
Tried to create calendar using a number such as 2, but if the number did not exist an error occurred.
{"err":"Calendar not found"}
example which works for create
curl --request "POST" http://localhost:4440/api/37/incubating/project/Rundeck-Management/calendars
--header 'Accept: application/json'
--header "content-type: application/json"
--header "x-rundeck-auth-token:
-d '{"id":0,"name":"another test of dates","description":"","calendarType":"allowed","scope":"project","project":"Rundeck-Management","dateType":"date","dateDefinition":["2021/02/22","2021/02/26"],"enable":true,"allReference":false,"recurrent":true,"objects":[{"uuid":"d1d69084-7615-41ca-bf80-3173d2e5b572","name":"Webhooks/Listing webhooks"}]}'
when id was missing a parse json error was returned.
Source page Please include the link or name for the page of the documentation which has the issue.