Set a document in a Google Cloud Firestore collection.

yaml
type: "io.kestra.plugin.gcp.firestore.Set"

Set a document from a map.

yaml
id: gcp_firestore_set
namespace: company.team

tasks:
  - id: set
    type: io.kestra.plugin.gcp.firestore.Set
    collection: "persons"
    document:
      firstname: "John"
      lastname: "Doe"

Set a document from a JSON string.

yaml
id: gcp_firestore_set
namespace: company.team

inputs:
  - id: json_string
    type: STRING
    default: "{"firstname": "John", "lastname": "Doe"}"

tasks:
  - id: set
    type: io.kestra.plugin.gcp.firestore.Set
    collection: "persons"
    document: "{{ inputs.json_string }}"
Properties

The Firestore document child path.

The Firestore collection

The Firestore document.

Can be a JSON string, or a map.

The GCP service account to impersonate.

The GCP project ID.

SubType string
Default ["https://www.googleapis.com/auth/cloud-platform"]

The GCP scopes to be used.

The GCP service account.

Format date-time

The document updated time