Consent

Represents a user's consent.

HealthcareFHIRHL7v2DICOMMedical ImagingDe-IdentificationInteroperabilityCloud

Properties

Name Type Description
consentArtifact string Required. The resource name of the Consent artifact that contains proof of the end user's consent, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{conse
expireTime string Timestamp in UTC of when this Consent is considered expired.
metadata object Optional. User-supplied key-value pairs used to organize Consent resources. Metadata keys must: - be between 1 and 63 characters long - have a UTF-8 encoding of maximum 128 bytes - begin with a letter
name string Identifier. Resource name of the Consent, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consents/{consent_id}`. Cannot be changed af
policies array Optional. Represents a user's consent in terms of the resources that can be accessed and under what conditions.
revisionCreateTime string Output only. The timestamp that the revision was created.
revisionId string Output only. The revision ID of the Consent. The format is an 8-character hexadecimal string. Refer to a specific revision of a Consent by appending `@{revision_id}` to the Consent's resource name.
state string Required. Indicates the current state of this Consent.
ttl string Input only. The time to live for this Consent from when it is created.
userId string Required. User's UUID provided by the client.
View JSON Schema on GitHub

JSON Schema

Consent.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Consent",
  "description": "Represents a user's consent.",
  "properties": {
    "consentArtifact": {
      "description": "Required. The resource name of the Consent artifact that contains proof of the end user's consent, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consentArtifacts/{consent_artifact_id}`.",
      "type": "string"
    },
    "expireTime": {
      "description": "Timestamp in UTC of when this Consent is considered expired.",
      "format": "google-datetime",
      "type": "string"
    },
    "metadata": {
      "additionalProperties": {
        "type": "string"
      },
      "description": "Optional. User-supplied key-value pairs used to organize Consent resources. Metadata keys must: - be between 1 and 63 characters long - have a UTF-8 encoding of maximum 128 bytes - begin with a letter - consist of up to 63 characters including lowercase letters, numeric characters, underscores, and dashes Metadata values must be: - be between 1 and 63 characters long - have a UTF-8 encoding of maximum 128 bytes - consist of up to 63 characters including lowercase letters, numeric characters, underscores, and dashes No more than 64 metadata entries can be associated with a given consent.",
      "type": "object"
    },
    "name": {
      "description": "Identifier. Resource name of the Consent, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consents/{consent_id}`. Cannot be changed after creation.",
      "type": "string"
    },
    "policies": {
      "description": "Optional. Represents a user's consent in terms of the resources that can be accessed and under what conditions.",
      "items": {
        "$ref": "#/components/schemas/GoogleCloudHealthcareV1ConsentPolicy"
      },
      "type": "array"
    },
    "revisionCreateTime": {
      "description": "Output only. The timestamp that the revision was created.",
      "format": "google-datetime",
      "readOnly": true,
      "type": "string"
    },
    "revisionId": {
      "description": "Output only. The revision ID of the Consent. The format is an 8-character hexadecimal string. Refer to a specific revision of a Consent by appending `@{revision_id}` to the Consent's resource name.",
      "readOnly": true,
      "type": "string"
    },
    "state": {
      "description": "Required. Indicates the current state of this Consent.",
      "enum": [
        "STATE_UNSPECIFIED",
        "ACTIVE",
        "ARCHIVED",
        "REVOKED",
        "DRAFT",
        "REJECTED"
      ],
      "type": "string"
    },
    "ttl": {
      "description": "Input only. The time to live for this Consent from when it is created.",
      "format": "google-duration",
      "type": "string"
    },
    "userId": {
      "description": "Required. User's UUID provided by the client.",
      "type": "string"
    }
  },
  "type": "object"
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/Consent"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.