The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

I want to update event in confluece calender using CURL command

Mrinmay_Biswas
May 4, 2020

I have one python script which can successfully update event in confluence calender using below request

 

import requests
import json
baseURL = 'https://confluence.example.com/rest/calendar-services/1.0/calendar/events.json'
headers = { "content-type" : "application/x-www-form-urlencoded" }
user='****'
password='****'
hd={'Content-Type': 'application/json'}
calenderData = {"subCalendarId":"7ed3840a-6e3e-4043-a4da-be02a8208eaf","eventType":"Events", "what":"Test Deployment", "person": ["******"],"startDate":"28-Apr-2020","endDate": "28-Apr-2020","allDayEvent": "true","where": "By" }
response = requests.put(baseURL, headers=headers, auth=(user, password), data=calenderData, timeout=15)

 

But same request if I do by groovy using CURL command it showing null event error

def response = ["curl", "-k", "-u", user:password, "-X", "PUT", "-d", "${calenderData}", "-H", "Content-Type:application/json", "${baseURL}"].execute().text

 

 

 

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events