{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://zieapi.vercel.app"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/analytics:googleapis-licensing/licensing-license-assignments-get":{"get":{"operationId":"analytics_googleapis_licensing_licensing_license_assignments_get","summary":"Get a specific user's license by product SKU.","description":"GET /apps/licensing/v1/product/{productId}/sku/{skuId}/user/{userId}","tags":["analytics"],"parameters":[{"name":"productId","in":"query","required":true,"description":"A product's unique identifier. For more information about products in this version of the API, see Products and SKUs.","schema":{"type":"string","description":"A product's unique identifier. For more information about products in this version of the API, see Products and SKUs."}},{"name":"skuId","in":"query","required":true,"description":"A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs.","schema":{"type":"string","description":"A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs."}},{"name":"userId","in":"query","required":true,"description":"The user's current primary email address. If the user's email address changes, use the new email address in your API requests. Since a…","schema":{"type":"string","description":"The user's current primary email address. If the user's email address changes, use the new email address in your API requests. Since a…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-licensing/licensing-license-assignments-update":{"post":{"operationId":"analytics_googleapis_licensing_licensing_license_assignments_update","summary":"Reassign a user's product SKU with a different SKU in the same product.","description":"PUT /apps/licensing/v1/product/{productId}/sku/{skuId}/user/{userId}","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["productId","skuId","userId","body"],"properties":{"productId":{"type":"string","description":"A product's unique identifier. For more information about products in this version of the API, see Products and SKUs."},"skuId":{"type":"string","description":"A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs."},"userId":{"type":"string","description":"The user's current primary email address. If the user's email address changes, use the new email address in your API requests. Since a…"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-licensing/licensing-license-assignments-patch":{"post":{"operationId":"analytics_googleapis_licensing_licensing_license_assignments_patch","summary":"Reassign a user's product SKU with a different SKU in the same product. This method supports patch semantics.","description":"PATCH /apps/licensing/v1/product/{productId}/sku/{skuId}/user/{userId}","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["productId","skuId","userId","body"],"properties":{"productId":{"type":"string","description":"A product's unique identifier. For more information about products in this version of the API, see Products and SKUs."},"skuId":{"type":"string","description":"A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs."},"userId":{"type":"string","description":"The user's current primary email address. If the user's email address changes, use the new email address in your API requests. Since a…"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-licensing/licensing-license-assignments-delete":{"post":{"operationId":"analytics_googleapis_licensing_licensing_license_assignments_delete","summary":"Revoke a license.","description":"DELETE /apps/licensing/v1/product/{productId}/sku/{skuId}/user/{userId}","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["productId","skuId","userId"],"properties":{"productId":{"type":"string","description":"A product's unique identifier. For more information about products in this version of the API, see Products and SKUs."},"skuId":{"type":"string","description":"A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs."},"userId":{"type":"string","description":"The user's current primary email address. If the user's email address changes, use the new email address in your API requests. Since a…"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-licensing/licensing-license-assignments-insert":{"post":{"operationId":"analytics_googleapis_licensing_licensing_license_assignments_insert","summary":"Assign a license.","description":"POST /apps/licensing/v1/product/{productId}/sku/{skuId}/user","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["productId","skuId","body"],"properties":{"productId":{"type":"string","description":"A product's unique identifier. For more information about products in this version of the API, see Products and SKUs."},"skuId":{"type":"string","description":"A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-licensing/licensing-license-assignments-list-for-product":{"get":{"operationId":"analytics_googleapis_licensing_licensing_license_assignments_list_for_product","summary":"List all users assigned licenses for a specific product SKU.","description":"GET /apps/licensing/v1/product/{productId}/users","tags":["analytics"],"parameters":[{"name":"customerId","in":"query","required":true,"description":"The customer's unique ID as defined in the Admin console, such as `C00000000`. If the customer is suspended, the server returns an error.","schema":{"type":"string","description":"The customer's unique ID as defined in the Admin console, such as `C00000000`. If the customer is suspended, the server returns an error."}},{"name":"maxResults","in":"query","required":false,"description":"The `maxResults` query string determines how many entries are returned on each page of a large response. This is an optional parameter.…","schema":{"type":"integer","default":"100","description":"The `maxResults` query string determines how many entries are returned on each page of a large response. This is an optional parameter.…"}},{"name":"pageToken","in":"query","required":false,"description":"Token to fetch the next page of data. The `maxResults` query string is related to the `pageToken` since `maxResults` determines how many…","schema":{"type":"string","default":"","description":"Token to fetch the next page of data. The `maxResults` query string is related to the `pageToken` since `maxResults` determines how many…"}},{"name":"productId","in":"query","required":true,"description":"A product's unique identifier. For more information about products in this version of the API, see Products and SKUs.","schema":{"type":"string","description":"A product's unique identifier. For more information about products in this version of the API, see Products and SKUs."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-licensing/licensing-license-assignments-list-for-product-and-sku":{"get":{"operationId":"analytics_googleapis_licensing_licensing_license_assignments_list_for_product_and_sku","summary":"List all users assigned licenses for a specific product SKU.","description":"GET /apps/licensing/v1/product/{productId}/sku/{skuId}/users","tags":["analytics"],"parameters":[{"name":"customerId","in":"query","required":true,"description":"The customer's unique ID as defined in the Admin console, such as `C00000000`. If the customer is suspended, the server returns an error.","schema":{"type":"string","description":"The customer's unique ID as defined in the Admin console, such as `C00000000`. If the customer is suspended, the server returns an error."}},{"name":"maxResults","in":"query","required":false,"description":"The `maxResults` query string determines how many entries are returned on each page of a large response. This is an optional parameter.…","schema":{"type":"integer","default":"100","description":"The `maxResults` query string determines how many entries are returned on each page of a large response. This is an optional parameter.…"}},{"name":"pageToken","in":"query","required":false,"description":"Token to fetch the next page of data. The `maxResults` query string is related to the `pageToken` since `maxResults` determines how many…","schema":{"type":"string","default":"","description":"Token to fetch the next page of data. The `maxResults` query string is related to the `pageToken` since `maxResults` determines how many…"}},{"name":"productId","in":"query","required":true,"description":"A product's unique identifier. For more information about products in this version of the API, see Products and SKUs.","schema":{"type":"string","description":"A product's unique identifier. For more information about products in this version of the API, see Products and SKUs."}},{"name":"skuId","in":"query","required":true,"description":"A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs.","schema":{"type":"string","description":"A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"dev-tools:hash"},"data":{},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}