{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/seekrit-dev/json-schema/seekrit-dev-post-v1-orgs-orgid-kms-keys-request-schema.json",
  "title": "PostV1OrgsOrgidKmsKeysRequest",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/seekrit-dev-reference-openapi-generated.yml#/components/schemas/PostV1OrgsOrgidKmsKeysRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "purpose": {
      "type": "string",
      "description": "'encrypt' or 'sign'"
    },
    "spec": {
      "type": "string"
    },
    "applicationId": {
      "type": "string"
    },
    "groupId": {
      "type": "string"
    },
    "publicKeyJwk": {
      "type": "object",
      "description": "sign only"
    },
    "grants": {
      "type": "array",
      "description": "array of {principalType, principalId, wrappedKey}"
    }
  },
  "required": [
    "name",
    "purpose",
    "spec",
    "grants"
  ]
}