Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Add event to calendar is not working in Rest API

Chandru Gunasekaran December 4, 2024

Hello Masters,

I am trying to connect JIRA calender service to add / update / get events. For that i am using the below API but i am getting the below error.

 

API : https://<<host>>/wiki/rest/calendar-services/1.0/calendar/events.json

Curl Command:

curl -u "<user>:<API Token>" -X PUT "https://<host>/wiki/rest/calendar-services/1.0/calendar/events.json" -H "Content-Type: application/json" -d "{\"editAllInRecurrenceSeries\": \"true\", \"subCalendarId\": \"cb029ea4-ca9e-47e4-89dc-838d99d239e8\", \"eventType\": \"other\", \"startDate\": \"Dec 5, 2024\", \"startTime\": \"1:00 PM\", \"endDate\": \"Dec 5, 2024\", \"endTime\": \"2:00 PM\", \"what\": \"Test Jira Sync 1\", \"userTimeZoneId\": \"Europe/Berlin\"}"

ERROR: "Unable to create resource class com.atlassian.confluence.api.service.apilayer.teamcalendars.internalresources.param.UpdateEventParam"

can anyone help me to solve the issue? Thanks in advance.

2 answers

Suggest an answer

Log in or Sign up to answer
0 votes
Chandru Gunasekaran December 5, 2024

solved by giving payload in raw text format

Scott Holland October 9, 2025

what does "raw text format" mean, i'm getting shutdown trying to add an event via the api.

Chandru Gunasekaran October 9, 2025

Like this

confluence_calender_insert.png

0 votes
Chandru Gunasekaran December 4, 2024

image.png

TAGS
AUG Leaders

Atlassian Community Events