Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

set event id on google calendar java

I tried to set the eventId on google calendar v3 api in Java, but it gave me 400 error with "message": "Invalid resource id value.". Is there any way to set the event Id of google calendar by ourselves?

thanks

like image 916
user1012283 Avatar asked Jan 18 '26 06:01

user1012283


1 Answers

Actually, the id field is writeable, see: [https://developers.google.com/google-apps/calendar/v3/reference/events][1]

id string Identifier of the event. When creating new single or recurring events, you can specify their IDs. Provided IDs must follow these rules:

characters allowed in the ID are those used in base32hex encoding, i.e. lowercase letters a-v and digits 0-9, see section 3.1.2 in RFC2938
the length of the ID must be between 5 and 1024 characters
the ID must be unique per calendar

Due to the globally distributed nature of the system, we cannot guarantee that ID collisions will be detected at event creation time. To minimize the risk of collisions we recommend using an established UUID algorithm such as one described in RFC4122.

writable

like image 56
MickATX Avatar answered Jan 20 '26 20:01

MickATX