{"status":"success","message":"Returning spec snapshot","data":"{\"openapi\":\"3.0.0\",\"info\":{\"description\":\"This is the OAS 3.0 specification for the Organization API in Sophos Central.\",\"version\":\"1.2.1\",\"contact\":{\"name\":\"Sophos Central APIs\",\"email\":\"apis@sophos.com\",\"url\":\"https://developer.sophos.com\"},\"title\":\"Organization API\"},\"tags\":[{\"name\":\"Tenants\",\"description\":\"List tenants or view tenant details.\"}],\"servers\":[{\"url\":\"https://api.central.sophos.com/organization/v1\",\"description\":\"Global service in the production environment.\"}],\"security\":[{\"bearerAuth\":[]}],\"paths\":{\"/tenants\":{\"get\":{\"tags\":[\"OrganizationTenants\"],\"summary\":\"Enumerate tenants\",\"description\":\"Get all the tenants in the specified organization.\",\"operationId\":\"listTenantsInOrganization\",\"parameters\":[{\"name\":\"X-Organization-ID\",\"in\":\"header\",\"description\":\"Organization ID.\",\"required\":true,\"schema\":{\"type\":\"string\",\"format\":\"uuid\"}},{\"in\":\"query\",\"name\":\"page\",\"required\":false,\"schema\":{\"type\":\"integer\",\"default\":1},\"description\":\"The page number to fetch, starting with 1.\"},{\"in\":\"query\",\"name\":\"pageSize\",\"required\":false,\"schema\":{\"type\":\"integer\",\"default\":50},\"description\":\"The size of the page requested.\"},{\"in\":\"query\",\"name\":\"pageTotal\",\"required\":false,\"schema\":{\"type\":\"boolean\",\"default\":false},\"description\":\"Whether the number of pages should be calculated and returned in the response.\"}],\"responses\":{\"200\":{\"description\":\"Page of tenants.\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"description\":\"Page of tenants.\",\"required\":[\"items\",\"pages\"],\"properties\":{\"items\":{\"type\":\"array\",\"description\":\"List of tenants.\",\"items\":{\"type\":\"object\",\"description\":\"Tenant.\",\"required\":[\"id\",\"name\",\"dataGeography\",\"dataRegion\",\"billingType\",\"organization\",\"apiHost\"],\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Tenant ID.\",\"format\":\"uuid\"},\"showAs\":{\"type\":\"string\",\"description\":\"Tenant display name.\"},\"name\":{\"type\":\"string\",\"description\":\"Name set when the tenant was created.\"},\"dataGeography\":{\"type\":\"string\",\"description\":\"Geographical location where the tenant data is stored.\",\"enum\":[\"US\",\"IE\",\"DE\"]},\"dataRegion\":{\"type\":\"string\",\"description\":\"Data region where tenant data is stored.\",\"enum\":[\"eu01\",\"eu02\",\"us01\",\"us02\",\"us03\"]},\"billingType\":{\"type\":\"string\",\"description\":\"Billing type.\",\"enum\":[\"term\",\"trial\",\"usage\"]},\"partner\":{\"type\":\"object\",\"description\":\"Represents a referenced object.\",\"required\":[\"id\"],\"properties\":{\"id\":{\"type\":\"string\",\"format\":\"uuid\",\"description\":\"The ID of the referenced object.\"}}},\"organization\":{\"type\":\"object\",\"description\":\"Represents a referenced object.\",\"required\":[\"id\"],\"properties\":{\"id\":{\"type\":\"string\",\"format\":\"uuid\",\"description\":\"The ID of the referenced object.\"}}},\"apiHost\":{\"type\":\"string\",\"description\":\"API host.\",\"format\":\"uri\"}}}},\"pages\":{\"type\":\"object\",\"required\":[\"current\",\"size\",\"maxSize\"],\"properties\":{\"current\":{\"type\":\"integer\",\"description\":\"The 1-based page number being returned.\"},\"size\":{\"type\":\"integer\",\"description\":\"The size of the page being returned.\"},\"total\":{\"type\":\"integer\",\"description\":\"(Optional) The total number of pages that exist, if pageTotal=true in the request.\"},\"items\":{\"type\":\"integer\",\"description\":\"(Optional) The total number of items across all pages.\"},\"maxSize\":{\"type\":\"integer\",\"description\":\"The maximum page size that can be requested.\"}}}}}}}},\"500\":{\"description\":\"Unexpected error.\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"required\":[\"error\"],\"properties\":{\"error\":{\"type\":\"string\"},\"message\":{\"type\":\"string\"},\"correlationId\":{\"type\":\"string\",\"format\":\"uuid\"},\"code\":{\"type\":\"string\"},\"createdAt\":{\"type\":\"string\",\"format\":\"datetime\"},\"requestId\":{\"type\":\"string\",\"format\":\"uuid\"},\"docUrl\":{\"type\":\"string\",\"format\":\"uri\"}}}}}}}}},\"/tenants/{tenantId}\":{\"get\":{\"tags\":[\"OrganizationTenants\"],\"summary\":\"Get tenant details\",\"description\":\"Get a tenant by ID.\",\"operationId\":\"getTenantById\",\"parameters\":[{\"name\":\"X-Organization-ID\",\"in\":\"header\",\"description\":\"Organization ID.\",\"required\":true,\"schema\":{\"type\":\"string\",\"format\":\"uuid\"}},{\"name\":\"tenantId\",\"in\":\"path\",\"description\":\"Tenant ID.\",\"required\":true,\"schema\":{\"type\":\"string\",\"format\":\"uuid\"}}],\"responses\":{\"200\":{\"description\":\"Existing tenant.\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"description\":\"Tenant.\",\"required\":[\"id\",\"name\",\"dataGeography\",\"dataRegion\",\"billingType\",\"organization\",\"apiHost\"],\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Tenant ID.\",\"format\":\"uuid\"},\"showAs\":{\"type\":\"string\",\"description\":\"Tenant display name.\"},\"name\":{\"type\":\"string\",\"description\":\"Name set when tenant was created.\"},\"dataGeography\":{\"type\":\"string\",\"description\":\"Geographical location where the tenant data is stored.\",\"enum\":[\"US\",\"IE\",\"DE\"]},\"dataRegion\":{\"type\":\"string\",\"description\":\"Data region where tenant data is stored.\",\"enum\":[\"eu01\",\"eu02\",\"us01\",\"us02\",\"us03\"]},\"billingType\":{\"type\":\"string\",\"description\":\"Billing type.\",\"enum\":[\"term\",\"trial\",\"usage\"]},\"partner\":{\"type\":\"object\",\"description\":\"Represents a referenced object.\",\"required\":[\"id\"],\"properties\":{\"id\":{\"type\":\"string\",\"format\":\"uuid\",\"description\":\"The ID of the referenced object.\"}}},\"organization\":{\"type\":\"object\",\"description\":\"Represents a referenced object.\",\"required\":[\"id\"],\"properties\":{\"id\":{\"type\":\"string\",\"format\":\"uuid\",\"description\":\"The ID of the referenced object.\"}}},\"apiHost\":{\"type\":\"string\",\"description\":\"API host.\",\"format\":\"uri\"}}}}}},\"500\":{\"description\":\"Unexpected error.\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"required\":[\"error\"],\"properties\":{\"error\":{\"type\":\"string\"},\"message\":{\"type\":\"string\"},\"correlationId\":{\"type\":\"string\",\"format\":\"uuid\"},\"code\":{\"type\":\"string\"},\"createdAt\":{\"type\":\"string\",\"format\":\"datetime\"},\"requestId\":{\"type\":\"string\",\"format\":\"uuid\"},\"docUrl\":{\"type\":\"string\",\"format\":\"uri\"}}}}}}}}}},\"components\":{\"securitySchemes\":{\"bearerAuth\":{\"type\":\"http\",\"scheme\":\"bearer\",\"bearerFormat\":\"JWT\"}}}}","code":null,"request_id":"971902823","error_code":null}