{
  "$id": "https://intentschema.org/profiles/com.google.people/productivity.contacts.contact.create.v1.json",
  "id": "org.intentschema.productivity.contacts.contact.create.v1@com.google.people.v1",
  "pins": "https://intentschema.org/intents/productivity/contacts/contact/create/v1.json",
  "title": "Google People contact create profile",
  "description": "Google People API profile for contact create.",
  "constraints": {
    "properties": {
      "target": {
        "properties": {
          "system": {
            "const": "google_contacts"
          }
        },
        "required": [
          "system"
        ]
      }
    }
  },
  "api": {
    "method": "POST",
    "path": "/v1/people:createContact",
    "scopes": [
      "https://www.googleapis.com/auth/contacts"
    ],
    "docs": "https://developers.google.com/people/api/rest/v1/people/createContact",
    "params": {
      "object.given_name": "names[].givenName",
      "object.family_name": "names[].familyName",
      "object.display_name": "names[].displayName",
      "object.emails": "emailAddresses[].value + type",
      "object.phones": "phoneNumbers[].value + type",
      "object.organization": "organizations[].name",
      "object.job_title": "organizations[].title",
      "object.notes": "biographies[].value",
      "google_contacts.personFields": "personFields (response mask)"
    },
    "base_url": "https://people.googleapis.com"
  }
}
