{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentsknow-app/json-schema/agentsknow-app-post-v1-spaces-id-resources-request-schema.json",
  "title": "PostV1SpacesIdResourcesRequest",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/agentsknow-app-openapi-generated.yml#/components/schemas/PostV1SpacesIdResourcesRequest",
  "type": "object",
  "properties": {
    "action": {
      "type": "string",
      "description": "One of \"acquire\", \"renew\", or \"release\"."
    },
    "expected_token": {
      "type": "integer",
      "description": "Expected fencing token; 0 if absent."
    },
    "lease_seconds": {
      "type": "integer",
      "description": "Lease duration in seconds."
    },
    "name": {
      "type": "string",
      "description": "Stable resource name."
    }
  },
  "required": [
    "action",
    "expected_token",
    "name"
  ]
}