AlmondTill/G3N API

policyValue

query · in the family Policy value record

What it does

One scheduled policy value — the key, the value, where it applies, and when.

One PolicyValueRecord by id. The record must belong to your organization group; an id from another group reads as not found.

Before you call

A bearer session from an API key (see Authentication and key hygiene) or a signed-in user.

Capability area: Operating policy — The operational policies and thresholds your organization runs by.

Roles that may call it:

Arguments

NameTypeRequiredNotes
idID ID!yesThe id of the record.

Returns

PolicyValueRecord — A PolicyValueRecord — ONE effective-dated value window in the tenant policy schedule, resolved LF → org → the registry default nearest-ancestor-with-value at every read. Keys are registry-defined. Doom cancels a not-yet-effective future record only (CONFLICT/IMMUTABLE otherwise — supersede instead). The window/key/value fields are wire-IMMUTABLE (the edit surface is caption only). The catalog ladder's zone rung is a named registry growth — no v1 key legally scopes there.

Example request

graphql
query ExamplePolicyValue($id: ID!) {
  policyValue(id: $id) {
    id
    sysId
    type
    caption
    status
    parentId
    rootId
    createdAt
    updatedAt
    revisionNum
    revision
    level
    key
    valueInt
    startAt
    endAt
  }
}

Variables:

json
{
  "id": "01900000-0000-7000-8000-eff0c6410000"
}

Example response

json
{
  "data": {
    "policyValue": {
      "id": "01900000-0000-7000-8000-eff0c6410000",
      "sysId": "PC-EXMP-0000-000F",
      "type": "PolicyValueRecord",
      "caption": "Blue jeans",
      "status": "active",
      "parentId": "01900000-0000-7000-8000-1971e30a0000",
      "rootId": "01900000-0000-7000-8000-a1295a650000",
      "createdAt": "2027-01-31T00:00:00.000Z",
      "updatedAt": "2027-01-31T00:00:00.000Z",
      "revisionNum": 1,
      "revision": "01900000-0000-7000-8000-53c6eea90000",
      "level": "<level>",
      "key": "<key>",
      "valueInt": 1,
      "startAt": "2027-01-31T00:00:00.000Z",
      "endAt": "2027-01-31T00:00:00.000Z"
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": null,
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

Errors this call can answer