{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://www.apizie.tech"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/analytics:googleapis-drivelabels/drivelabels-labels-list":{"get":{"operationId":"analytics_googleapis_drivelabels_drivelabels_labels_list","summary":"List labels. For more information, see [Search for…","description":"GET /v2/labels","tags":["analytics"],"parameters":[{"name":"customer","in":"query","required":false,"description":"The customer to scope this list request to. For example: `customers/abcd1234`. If unset, will return all labels within the current customer.","schema":{"type":"string","description":"The customer to scope this list request to. For example: `customers/abcd1234`. If unset, will return all labels within the current customer."}},{"name":"languageCode","in":"query","required":false,"description":"The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language are…","schema":{"type":"string","description":"The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language are…"}},{"name":"minimumRole","in":"query","required":false,"description":"Specifies the level of access the user must have on the returned labels. The minimum role a user must have on a label. Defaults to `READER`.","schema":{"type":"string","enum":["LABEL_ROLE_UNSPECIFIED","READER","APPLIER","ORGANIZER","EDITOR"],"description":"Specifies the level of access the user must have on the returned labels. The minimum role a user must have on a label. Defaults to `READER`."}},{"name":"pageSize","in":"query","required":false,"description":"Maximum number of labels to return per page. Default: 50. Max: 200.","schema":{"type":"integer","description":"Maximum number of labels to return per page. Default: 50. Max: 200."}},{"name":"pageToken","in":"query","required":false,"description":"The token of the page to return.","schema":{"type":"string","description":"The token of the page to return."}},{"name":"publishedOnly","in":"query","required":false,"description":"Whether to include only published labels in the results. * When `true`, only the current published label revisions are returned. Disabled…","schema":{"type":"boolean","description":"Whether to include only published labels in the results. * When `true`, only the current published label revisions are returned. Disabled…"}},{"name":"useAdminAccess","in":"query","required":false,"description":"Set to `true` in order to use the user's admin credentials. This will return all labels within the customer.","schema":{"type":"boolean","description":"Set to `true` in order to use the user's admin credentials. This will return all labels within the customer."}},{"name":"view","in":"query","required":false,"description":"When specified, only certain fields belonging to the indicated view are returned.","schema":{"type":"string","enum":["LABEL_VIEW_BASIC","LABEL_VIEW_FULL"],"description":"When specified, only certain fields belonging to the indicated view are returned."}}],"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-drivelabels/drivelabels-labels-create":{"post":{"operationId":"analytics_googleapis_drivelabels_drivelabels_labels_create","summary":"Creates a label. For more information, see [Create and publish a…","description":"POST /v2/labels","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"languageCode":{"type":"string","description":"The BCP-47 language code to use for evaluating localized field labels in response. When not specified, values in the default configured…"},"useAdminAccess":{"type":"boolean","description":"Set to `true` in order to use the user's admin privileges. The server will verify the user is an admin before allowing access."},"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-drivelabels/drivelabels-users-get-capabilities":{"get":{"operationId":"analytics_googleapis_drivelabels_drivelabels_users_get_capabilities","summary":"Gets the user capabilities.","description":"GET /v2/{+name}","tags":["analytics"],"parameters":[{"name":"customer","in":"query","required":false,"description":"The customer to scope this request to. For example: `customers/abcd1234`. If unset, it will return settings within the current customer.","schema":{"type":"string","description":"The customer to scope this request to. For example: `customers/abcd1234`. If unset, it will return settings within the current customer."}},{"name":"name","in":"query","required":true,"description":"Required. The resource name of the user. Only \"users/me/capabilities\" is supported.","schema":{"type":"string","description":"Required. The resource name of the user. Only \"users/me/capabilities\" is supported."}}],"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-drivelabels/drivelabels-labels-revisions-permissions-delete":{"post":{"operationId":"analytics_googleapis_drivelabels_drivelabels_labels_revisions_permissions_delete","summary":"Deletes a label's permission. Permissions affect the label resource as a whole, aren't revisioned, and don't…","description":"DELETE /v2/{+name}","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Required. Label permission resource name."},"useAdminAccess":{"type":"boolean","description":"Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the label before allowing…"}}}}}},"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-drivelabels/drivelabels-labels-delta":{"post":{"operationId":"analytics_googleapis_drivelabels_drivelabels_labels_delta","summary":"Updates a single label by applying a set of update requests resulting in a new draft revision. For more…","description":"POST /v2/{+name}:delta","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","body"],"properties":{"name":{"type":"string","description":"Required. The resource name of the label to update."},"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-drivelabels/drivelabels-labels-disable":{"post":{"operationId":"analytics_googleapis_drivelabels_drivelabels_labels_disable","summary":"Disable a published label. For more information, see [Disable, enable, and delete a…","description":"POST /v2/{+name}:disable","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","body"],"properties":{"name":{"type":"string","description":"Required. Label resource name."},"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-drivelabels/drivelabels-labels-enable":{"post":{"operationId":"analytics_googleapis_drivelabels_drivelabels_labels_enable","summary":"Enable a disabled label and restore it to its published state. For more information, see [Disable, enable,…","description":"POST /v2/{+name}:enable","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","body"],"properties":{"name":{"type":"string","description":"Required. Label resource name."},"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-drivelabels/drivelabels-labels-publish":{"post":{"operationId":"analytics_googleapis_drivelabels_drivelabels_labels_publish","summary":"Publish all draft changes to the label. Once published, the label may not return to its draft state. For…","description":"POST /v2/{+name}:publish","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","body"],"properties":{"name":{"type":"string","description":"Required. Label resource name."},"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-drivelabels/drivelabels-labels-update-label-copy-mode":{"post":{"operationId":"analytics_googleapis_drivelabels_drivelabels_labels_update_label_copy_mode","summary":"Updates a label's `CopyMode`. Changes to this policy aren't revisioned, don't require publishing, and take…","description":"POST /v2/{+name}:updateLabelCopyMode","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","body"],"properties":{"name":{"type":"string","description":"Required. The resource name of the label to update."},"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-drivelabels/drivelabels-labels-update-label-enabled-app-settings":{"post":{"operationId":"analytics_googleapis_drivelabels_drivelabels_labels_update_label_enabled_app_settings","summary":"Updates a label's `EnabledAppSettings`. Enabling a label in a Google Workspace app allows it to be used in…","description":"POST /v2/{+name}:updateLabelEnabledAppSettings","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","body"],"properties":{"name":{"type":"string","description":"Required. The resource name of the label to update. The resource name of the label to update."},"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-drivelabels/drivelabels-labels-revisions-permissions-list":{"get":{"operationId":"analytics_googleapis_drivelabels_drivelabels_labels_revisions_permissions_list","summary":"Lists a label's permissions.","description":"GET /v2/{+parent}/permissions","tags":["analytics"],"parameters":[{"name":"pageSize","in":"query","required":false,"description":"Maximum number of permissions to return per page. Default: 50. Max: 200.","schema":{"type":"integer","description":"Maximum number of permissions to return per page. Default: 50. Max: 200."}},{"name":"pageToken","in":"query","required":false,"description":"The token of the page to return.","schema":{"type":"string","description":"The token of the page to return."}},{"name":"parent","in":"query","required":true,"description":"Required. The parent label resource name on which label permissions are listed. Format: `labels/{label}`.","schema":{"type":"string","description":"Required. The parent label resource name on which label permissions are listed. Format: `labels/{label}`."}},{"name":"useAdminAccess","in":"query","required":false,"description":"Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the label before allowing…","schema":{"type":"boolean","description":"Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the label before allowing…"}}],"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-drivelabels/drivelabels-labels-revisions-permissions-create":{"post":{"operationId":"analytics_googleapis_drivelabels_drivelabels_labels_revisions_permissions_create","summary":"Updates a label's permissions. If a permission for the indicated principal doesn't exist, a label permission…","description":"POST /v2/{+parent}/permissions","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["parent","body"],"properties":{"parent":{"type":"string","description":"Required. The parent label resource name on the label permission is created. Format: `labels/{label}`."},"useAdminAccess":{"type":"boolean","description":"Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the label before allowing…"},"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-drivelabels/drivelabels-labels-revisions-update-permissions":{"post":{"operationId":"analytics_googleapis_drivelabels_drivelabels_labels_revisions_update_permissions","summary":"Updates a label's permissions. If a permission for the indicated principal doesn't exist, a label permission…","description":"PATCH /v2/{+parent}/permissions","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["parent","body"],"properties":{"parent":{"type":"string","description":"Required. The parent label resource name."},"useAdminAccess":{"type":"boolean","description":"Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the label before allowing…"},"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-drivelabels/drivelabels-labels-revisions-locks-list":{"get":{"operationId":"analytics_googleapis_drivelabels_drivelabels_labels_revisions_locks_list","summary":"Lists the label locks on a label.","description":"GET /v2/{+parent}/locks","tags":["analytics"],"parameters":[{"name":"pageSize","in":"query","required":false,"description":"Maximum number of locks to return per page. Default: 100. Max: 200.","schema":{"type":"integer","description":"Maximum number of locks to return per page. Default: 100. Max: 200."}},{"name":"pageToken","in":"query","required":false,"description":"The token of the page to return.","schema":{"type":"string","description":"The token of the page to return."}},{"name":"parent","in":"query","required":true,"description":"Required. Label on which locks are applied. Format: `labels/{label}`.","schema":{"type":"string","description":"Required. Label on which locks are applied. Format: `labels/{label}`."}}],"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-drivelabels/drivelabels-labels-revisions-permissions-batch-delete":{"post":{"operationId":"analytics_googleapis_drivelabels_drivelabels_labels_revisions_permissions_batch_delete","summary":"Deletes label permissions. Permissions affect the label resource as a whole, aren't revisioned, and don't…","description":"POST /v2/{+parent}/permissions:batchDelete","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["parent","body"],"properties":{"parent":{"type":"string","description":"Required. The parent label resource name shared by all permissions being deleted. Format: `labels/{label}`. If this is set, the parent…"},"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-drivelabels/drivelabels-labels-revisions-permissions-batch-update":{"post":{"operationId":"analytics_googleapis_drivelabels_drivelabels_labels_revisions_permissions_batch_update","summary":"Updates label permissions. If a permission for the indicated principal doesn't exist, a label permission is…","description":"POST /v2/{+parent}/permissions:batchUpdate","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["parent","body"],"properties":{"parent":{"type":"string","description":"Required. The parent label resource name shared by all permissions being updated. Format: `labels/{label}`. If this is set, the parent…"},"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-drivelabels/drivelabels-limits-get-label":{"get":{"operationId":"analytics_googleapis_drivelabels_drivelabels_limits_get_label","summary":"Get the constraints on the structure of a label; such as, the maximum number of fields allowed and maximum…","description":"GET /v2/limits/label","tags":["analytics"],"parameters":[{"name":"name","in":"query","required":false,"description":"Required. Label revision resource name must be: \"limits/label\".","schema":{"type":"string","description":"Required. Label revision resource name must be: \"limits/label\"."}}],"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"}}}}}}}