1

I have added an extended property to a Google calendar entry and been able to read it back successfully. The format of the json is like this:

"extendedProperties": {
 "private": {
 "MyPropertyName": "yes"
 }
 },

I want to do the same thing to created Task entries and contact entries (via the People API). With the People API, trying to create the entry results in http 400. With the Task API, it accepts the json, but the property is not returned when I retrieve the task.

Is it possible to do what I want with the current versions of the People and Task API?

Jeff McKay
  • 75
  • 5

1 Answers1

1

In People API extended properties are called ClientData

The json structure of the resouce is:

{
  "metadata": {
    object (FieldMetadata)
  },
  "key": string,
  "value": string
}

with FieldMetadata:

{
  "primary": boolean,
  "sourcePrimary": boolean,
  "verified": boolean,
  "source": {
    object (Source)
  }
}
ziganotschka
  • 25,866
  • 2
  • 16
  • 33
  • Thanks for the information - I was able to get it working successfully with the People API. If you have any insight on how I can do something similar with the Task API I'd appreciate it. – Jeff McKay Oct 14 '21 at 18:34