{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/datamcp-app/json-schema/datamcp-app-post-integration-credentials-request-schema.json",
  "title": "PostIntegrationCredentialsRequest",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/datamcp-app-openapi-generated.yml#/components/schemas/PostIntegrationCredentialsRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Human‑readable name for the credential"
    },
    "organizationId": {
      "type": "string",
      "description": "Organization UUID"
    },
    "sourceIds": {
      "type": "array",
      "description": "List of source IDs (1–10) the credential may access"
    },
    "operations": {
      "type": "array",
      "description": "Allowed operations (1–4) such as read_query, create_row, update_row, delete_row"
    },
    "tableScopes": {
      "type": "object",
      "description": "Optional mapping of source IDs to allowed schema‑qualified tables"
    }
  },
  "required": [
    "name",
    "organizationId",
    "sourceIds",
    "operations"
  ]
}