UNPKG

openapi-directory

Version:

Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS

1 lines 254 kB
{"openapi":"3.0.0","servers":[{"url":"/api/v2"}],"info":{"description":"# Authentication\n\n<!-- ReDoc-Inject: <security-definitions> -->","title":"Influx OSS API Service","version":"2.0.0","x-apisguru-categories":["iot"],"x-logo":{"url":"https://www.influxdata.com/wp-content/uploads/Favicon-blue-200x200.png"},"x-origin":[{"format":"openapi","url":"blob:https://docs.influxdata.com/blobId","version":"3.0"}],"x-providerName":"influxdata.com"},"paths":{"/":{"get":{"operationId":"GetRoutes","parameters":[{"$ref":"#/components/parameters/TraceSpan"}],"responses":{"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Routes"}}},"description":"All routes"}},"summary":"List all top level routes","tags":["Routes"]}},"/authorizations":{"get":{"operationId":"GetAuthorizations","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"Only show authorizations that belong to a user ID.","in":"query","name":"userID","schema":{"type":"string"}},{"description":"Only show authorizations that belong to a user name.","in":"query","name":"user","schema":{"type":"string"}},{"description":"Only show authorizations that belong to an organization ID.","in":"query","name":"orgID","schema":{"type":"string"}},{"description":"Only show authorizations that belong to a organization name.","in":"query","name":"org","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Authorizations"}}},"description":"A list of authorizations"},"default":{"$ref":"#/components/responses/ServerError","description":"Unexpected error"}},"summary":"List all authorizations","tags":["Authorizations"]},"post":{"operationId":"PostAuthorizations","parameters":[{"$ref":"#/components/parameters/TraceSpan"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorizationPostRequest"}}},"description":"Authorization to create","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Authorization"}}},"description":"Authorization created"},"400":{"$ref":"#/components/responses/ServerError","description":"Invalid request"},"default":{"$ref":"#/components/responses/ServerError","description":"Unexpected error"}},"summary":"Create an authorization","tags":["Authorizations"]}},"/authorizations/{authID}":{"delete":{"operationId":"DeleteAuthorizationsID","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The ID of the authorization to delete.","in":"path","name":"authID","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Authorization deleted"},"default":{"$ref":"#/components/responses/ServerError","description":"Unexpected error"}},"summary":"Delete an authorization","tags":["Authorizations"]},"get":{"operationId":"GetAuthorizationsID","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The ID of the authorization to get.","in":"path","name":"authID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Authorization"}}},"description":"Authorization details"},"default":{"$ref":"#/components/responses/ServerError","description":"Unexpected error"}},"summary":"Retrieve an authorization","tags":["Authorizations"]},"patch":{"operationId":"PatchAuthorizationsID","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The ID of the authorization to update.","in":"path","name":"authID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorizationUpdateRequest"}}},"description":"Authorization to update","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Authorization"}}},"description":"The active or inactie authorization"},"default":{"$ref":"#/components/responses/ServerError","description":"Unexpected error"}},"summary":"Update an authorization to be active or inactive","tags":["Authorizations"]}},"/buckets":{"get":{"operationId":"GetBuckets","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"$ref":"#/components/parameters/Offset"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/After"},{"description":"The name of the organization.","in":"query","name":"org","schema":{"type":"string"}},{"description":"The organization ID.","in":"query","name":"orgID","schema":{"type":"string"}},{"description":"Only returns buckets with a specific name.","in":"query","name":"name","schema":{"type":"string"}},{"description":"Only returns buckets with a specific ID.","in":"query","name":"id","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Buckets"}}},"description":"A list of buckets"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"List all buckets","tags":["Buckets"]},"post":{"operationId":"PostBuckets","parameters":[{"$ref":"#/components/parameters/TraceSpan"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostBucketRequest"}}},"description":"Bucket to create","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Bucket"}}},"description":"Bucket created"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Request body failed validation"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Create a bucket","tags":["Buckets"]}},"/buckets/{bucketID}":{"delete":{"operationId":"DeleteBucketsID","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The ID of the bucket to delete.","in":"path","name":"bucketID","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Delete has been accepted"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Bucket not found"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Delete a bucket","tags":["Buckets"]},"get":{"operationId":"GetBucketsID","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The bucket ID.","in":"path","name":"bucketID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Bucket"}}},"description":"Bucket details"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Retrieve a bucket","tags":["Buckets"]},"patch":{"operationId":"PatchBucketsID","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The bucket ID.","in":"path","name":"bucketID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchBucketRequest"}}},"description":"Bucket update to apply","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Bucket"}}},"description":"An updated bucket"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Update a bucket","tags":["Buckets"]}},"/buckets/{bucketID}/labels":{"get":{"operationId":"GetBucketsIDLabels","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The bucket ID.","in":"path","name":"bucketID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelsResponse"}}},"description":"A list of all labels for a bucket"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"List all labels for a bucket","tags":["Buckets"]},"post":{"operationId":"PostBucketsIDLabels","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The bucket ID.","in":"path","name":"bucketID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelMapping"}}},"description":"Label to add","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelResponse"}}},"description":"The newly added label"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Add a label to a bucket","tags":["Buckets"]}},"/buckets/{bucketID}/labels/{labelID}":{"delete":{"operationId":"DeleteBucketsIDLabelsID","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The bucket ID.","in":"path","name":"bucketID","required":true,"schema":{"type":"string"}},{"description":"The ID of the label to delete.","in":"path","name":"labelID","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Delete has been accepted"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Bucket not found"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Delete a label from a bucket","tags":["Buckets"]}},"/buckets/{bucketID}/members":{"get":{"operationId":"GetBucketsIDMembers","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The bucket ID.","in":"path","name":"bucketID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceMembers"}}},"description":"A list of bucket members"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"List all users with member privileges for a bucket","tags":["Buckets"]},"post":{"operationId":"PostBucketsIDMembers","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The bucket ID.","in":"path","name":"bucketID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddResourceMemberRequestBody"}}},"description":"User to add as member","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceMember"}}},"description":"Member added to bucket"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Add a member to a bucket","tags":["Buckets"]}},"/buckets/{bucketID}/members/{userID}":{"delete":{"operationId":"DeleteBucketsIDMembersID","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The ID of the member to remove.","in":"path","name":"userID","required":true,"schema":{"type":"string"}},{"description":"The bucket ID.","in":"path","name":"bucketID","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Member removed"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Remove a member from a bucket","tags":["Buckets"]}},"/buckets/{bucketID}/owners":{"get":{"operationId":"GetBucketsIDOwners","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The bucket ID.","in":"path","name":"bucketID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceOwners"}}},"description":"A list of bucket owners"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"List all owners of a bucket","tags":["Buckets"]},"post":{"operationId":"PostBucketsIDOwners","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The bucket ID.","in":"path","name":"bucketID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddResourceMemberRequestBody"}}},"description":"User to add as owner","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceOwner"}}},"description":"Bucket owner added"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Add an owner to a bucket","tags":["Buckets"]}},"/buckets/{bucketID}/owners/{userID}":{"delete":{"operationId":"DeleteBucketsIDOwnersID","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The ID of the owner to remove.","in":"path","name":"userID","required":true,"schema":{"type":"string"}},{"description":"The bucket ID.","in":"path","name":"bucketID","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Owner removed"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Remove an owner from a bucket","tags":["Buckets"]}},"/checks":{"get":{"operationId":"GetChecks","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"$ref":"#/components/parameters/Offset"},{"$ref":"#/components/parameters/Limit"},{"description":"Only show checks that belong to a specific organization ID.","in":"query","name":"orgID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Checks"}}},"description":"A list of checks"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"List all checks","tags":["Checks"]},"post":{"operationId":"CreateCheck","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostCheck"}}},"description":"Check to create","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Check"}}},"description":"Check created"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Add new check","tags":["Checks"]}},"/checks/{checkID}":{"delete":{"operationId":"DeleteChecksID","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The check ID.","in":"path","name":"checkID","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Delete has been accepted"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The check was not found"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Delete a check","tags":["Checks"]},"get":{"operationId":"GetChecksID","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The check ID.","in":"path","name":"checkID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Check"}}},"description":"The check requested"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Retrieve a check","tags":["Checks"]},"patch":{"operationId":"PatchChecksID","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The check ID.","in":"path","name":"checkID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckPatch"}}},"description":"Check update to apply","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Check"}}},"description":"An updated check"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The check was not found"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Update a check","tags":["Checks"]},"put":{"operationId":"PutChecksID","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The check ID.","in":"path","name":"checkID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Check"}}},"description":"Check update to apply","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Check"}}},"description":"An updated check"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The check was not found"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Update a check","tags":["Checks"]}},"/checks/{checkID}/labels":{"get":{"operationId":"GetChecksIDLabels","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The check ID.","in":"path","name":"checkID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelsResponse"}}},"description":"A list of all labels for a check"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"List all labels for a check","tags":["Checks"]},"post":{"operationId":"PostChecksIDLabels","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The check ID.","in":"path","name":"checkID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelMapping"}}},"description":"Label to add","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelResponse"}}},"description":"The label was added to the check"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Add a label to a check","tags":["Checks"]}},"/checks/{checkID}/labels/{labelID}":{"delete":{"operationId":"DeleteChecksIDLabelsID","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The check ID.","in":"path","name":"checkID","required":true,"schema":{"type":"string"}},{"description":"The ID of the label to delete.","in":"path","name":"labelID","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Delete has been accepted"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Check or label not found"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Delete label from a check","tags":["Checks"]}},"/checks/{checkID}/query":{"get":{"operationId":"GetChecksIDQuery","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The check ID.","in":"path","name":"checkID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FluxResponse"}}},"description":"The check query requested"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Invalid request"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Check not found"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Retrieve a check query","tags":["Checks"]}},"/dashboards":{"get":{"operationId":"GetDashboards","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"$ref":"#/components/parameters/Offset"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Descending"},{"description":"A user identifier. Returns only dashboards where this user has the `owner` role.","in":"query","name":"owner","schema":{"type":"string"}},{"description":"The column to sort by.","in":"query","name":"sortBy","schema":{"enum":["ID","CreatedAt","UpdatedAt"],"type":"string"}},{"description":"A list of dashboard identifiers. Returns only the listed dashboards. If both `id` and `owner` are specified, only `id` is used.","in":"query","name":"id","schema":{"items":{"type":"string"},"type":"array"}},{"description":"The identifier of the organization.","in":"query","name":"orgID","schema":{"type":"string"}},{"description":"The name of the organization.","in":"query","name":"org","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dashboards"}}},"description":"All dashboards"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"List all dashboards","tags":["Dashboards"]},"post":{"operationId":"PostDashboards","parameters":[{"$ref":"#/components/parameters/TraceSpan"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDashboardRequest"}}},"description":"Dashboard to create","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Dashboard"},{"$ref":"#/components/schemas/DashboardWithViewProperties"}]}}},"description":"Added dashboard"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Create a dashboard","tags":["Dashboards"]}},"/dashboards/{dashboardID}":{"delete":{"operationId":"DeleteDashboardsID","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The ID of the dashboard to update.","in":"path","name":"dashboardID","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Delete has been accepted"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Dashboard not found"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Delete a dashboard","tags":["Dashboards"]},"get":{"operationId":"GetDashboardsID","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The ID of the dashboard to update.","in":"path","name":"dashboardID","required":true,"schema":{"type":"string"}},{"description":"Includes the cell view properties in the response if set to `properties`","in":"query","name":"include","required":false,"schema":{"enum":["properties"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Dashboard"},{"$ref":"#/components/schemas/DashboardWithViewProperties"}]}}},"description":"Retrieve a single dashboard"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Dashboard not found"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Retrieve a Dashboard","tags":["Dashboards"]},"patch":{"operationId":"PatchDashboardsID","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The ID of the dashboard to update.","in":"path","name":"dashboardID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"cells":{"$ref":"#/components/schemas/CellWithViewProperties","description":"optional, when provided will replace all existing cells with the cells provided"},"description":{"description":"optional, when provided will replace the description","type":"string"},"name":{"description":"optional, when provided will replace the name","type":"string"}},"title":"PatchDashboardRequest","type":"object"}}},"description":"Patching of a dashboard","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dashboard"}}},"description":"Updated dashboard"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Dashboard not found"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Update a dashboard","tags":["Dashboards"]}},"/dashboards/{dashboardID}/cells":{"post":{"operationId":"PostDashboardsIDCells","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The ID of the dashboard to update.","in":"path","name":"dashboardID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCell"}}},"description":"Cell that will be added","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cell"}}},"description":"Cell successfully added"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Dashboard not found"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Create a dashboard cell","tags":["Cells","Dashboards"]},"put":{"description":"Replaces all cells in a dashboard. This is used primarily to update the positional information of all cells.","operationId":"PutDashboardsIDCells","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The ID of the dashboard to update.","in":"path","name":"dashboardID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cells"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dashboard"}}},"description":"Replaced dashboard cells"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Dashboard not found"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Replace cells in a dashboard","tags":["Cells","Dashboards"]}},"/dashboards/{dashboardID}/cells/{cellID}":{"delete":{"operationId":"DeleteDashboardsIDCellsID","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The ID of the dashboard to delete.","in":"path","name":"dashboardID","required":true,"schema":{"type":"string"}},{"description":"The ID of the cell to delete.","in":"path","name":"cellID","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Cell successfully deleted"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Cell or dashboard not found"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Delete a dashboard cell","tags":["Cells","Dashboards"]},"patch":{"description":"Updates the non positional information related to a cell. Updates to a single cell's positional data could cause grid conflicts.","operationId":"PatchDashboardsIDCellsID","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The ID of the dashboard to update.","in":"path","name":"dashboardID","required":true,"schema":{"type":"string"}},{"description":"The ID of the cell to update.","in":"path","name":"cellID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CellUpdate"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cell"}}},"description":"Updated dashboard cell"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Cell or dashboard not found"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Update the non-positional information related to a cell","tags":["Cells","Dashboards"]}},"/dashboards/{dashboardID}/cells/{cellID}/view":{"get":{"operationId":"GetDashboardsIDCellsIDView","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The dashboard ID.","in":"path","name":"dashboardID","required":true,"schema":{"type":"string"}},{"description":"The cell ID.","in":"path","name":"cellID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/View"}}},"description":"A dashboard cells view"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Cell or dashboard not found"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Retrieve the view for a cell","tags":["Cells","Dashboards","Views"]},"patch":{"operationId":"PatchDashboardsIDCellsIDView","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The ID of the dashboard to update.","in":"path","name":"dashboardID","required":true,"schema":{"type":"string"}},{"description":"The ID of the cell to update.","in":"path","name":"cellID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/View"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/View"}}},"description":"Updated cell view"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Cell or dashboard not found"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Update the view for a cell","tags":["Cells","Dashboards","Views"]}},"/dashboards/{dashboardID}/labels":{"get":{"operationId":"GetDashboardsIDLabels","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The dashboard ID.","in":"path","name":"dashboardID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelsResponse"}}},"description":"A list of all labels for a dashboard"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"List all labels for a dashboard","tags":["Dashboards"]},"post":{"operationId":"PostDashboardsIDLabels","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The dashboard ID.","in":"path","name":"dashboardID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelMapping"}}},"description":"Label to add","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelResponse"}}},"description":"The label added to the dashboard"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Add a label to a dashboard","tags":["Dashboards"]}},"/dashboards/{dashboardID}/labels/{labelID}":{"delete":{"operationId":"DeleteDashboardsIDLabelsID","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The dashboard ID.","in":"path","name":"dashboardID","required":true,"schema":{"type":"string"}},{"description":"The ID of the label to delete.","in":"path","name":"labelID","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Delete has been accepted"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Dashboard not found"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Delete a label from a dashboard","tags":["Dashboards"]}},"/dashboards/{dashboardID}/members":{"get":{"operationId":"GetDashboardsIDMembers","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The dashboard ID.","in":"path","name":"dashboardID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceMembers"}}},"description":"A list of users who have member privileges for a dashboard"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"List all dashboard members","tags":["Dashboards"]},"post":{"operationId":"PostDashboardsIDMembers","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The dashboard ID.","in":"path","name":"dashboardID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddResourceMemberRequestBody"}}},"description":"User to add as member","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceMember"}}},"description":"Added to dashboard members"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Add a member to a dashboard","tags":["Dashboards"]}},"/dashboards/{dashboardID}/members/{userID}":{"delete":{"operationId":"DeleteDashboardsIDMembersID","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The ID of the member to remove.","in":"path","name":"userID","required":true,"schema":{"type":"string"}},{"description":"The dashboard ID.","in":"path","name":"dashboardID","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Member removed"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Remove a member from a dashboard","tags":["Dashboards"]}},"/dashboards/{dashboardID}/owners":{"get":{"operationId":"GetDashboardsIDOwners","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The dashboard ID.","in":"path","name":"dashboardID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceOwners"}}},"description":"A list of users who have owner privileges for a dashboard"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"List all dashboard owners","tags":["Dashboards"]},"post":{"operationId":"PostDashboardsIDOwners","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The dashboard ID.","in":"path","name":"dashboardID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddResourceMemberRequestBody"}}},"description":"User to add as owner","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceOwner"}}},"description":"Added to dashboard owners"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Add an owner to a dashboard","tags":["Dashboards"]}},"/dashboards/{dashboardID}/owners/{userID}":{"delete":{"operationId":"DeleteDashboardsIDOwnersID","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The ID of the owner to remove.","in":"path","name":"userID","required":true,"schema":{"type":"string"}},{"description":"The dashboard ID.","in":"path","name":"dashboardID","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Owner removed"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Remove an owner from a dashboard","tags":["Dashboards"]}},"/dbrps":{"get":{"operationId":"GetDBRPs","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"Specifies the organization ID to filter on","in":"query","name":"orgID","required":true,"schema":{"type":"string"}},{"description":"Specifies the mapping ID to filter on","in":"query","name":"id","schema":{"type":"string"}},{"description":"Specifies the bucket ID to filter on","in":"query","name":"bucketID","schema":{"type":"string"}},{"description":"Specifies filtering on default","in":"query","name":"default","schema":{"type":"boolean"}},{"description":"Specifies the database to filter on","in":"query","name":"db","schema":{"type":"string"}},{"description":"Specifies the retention policy to filter on","in":"query","name":"rp","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DBRPs"}}},"description":"A list of all database retention policy mappings"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"if any of the parameter passed is invalid"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"List all database retention policy mappings","tags":["DBRPs"]},"post":{"operationId":"PostDBRP","parameters":[{"$ref":"#/components/parameters/TraceSpan"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DBRP"}}},"description":"The database retention policy mapping to add","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DBRP"}}},"description":"Database retention policy mapping created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"if any of the IDs in the mapping is invalid"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Add a database retention policy mapping","tags":["DBRPs"]}},"/dbrps/{dbrpID}":{"delete":{"operationId":"DeleteDBRPID","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"Specifies the organization ID of the mapping","in":"query","name":"orgID","required":true,"schema":{"type":"string"}},{"description":"The database retention policy mapping","in":"path","name":"dbrpID","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Delete has been accepted"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"if any of the IDs passed is invalid"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Delete a database retention policy","tags":["DBRPs"]},"get":{"operationId":"GetDBRPsID","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"Specifies the organization ID of the mapping","in":"query","name":"orgID","required":true,"schema":{"type":"string"}},{"description":"The database retention policy mapping ID","in":"path","name":"dbrpID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DBRP"}}},"description":"The database retention policy requested"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"if any of the IDs passed is invalid"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Retrieve a database retention policy mapping","tags":["DBRPs"]},"patch":{"operationId":"PatchDBRPID","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"Specifies the organization ID of the mapping","in":"query","name":"orgID","required":true,"schema":{"type":"string"}},{"description":"The database retention policy mapping.","in":"path","name":"dbrpID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DBRPUpdate"}}},"description":"Database retention policy update to apply","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DBRP"}}},"description":"An updated mapping"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"if any of the IDs passed is invalid"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The mapping was not found"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Update a database retention policy mapping","tags":["DBRPs"]}},"/delete":{"post":{"operationId":"PostDelete","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"Specifies the organization to delete data from.","in":"query","name":"org","schema":{"description":"Only points from this organization are deleted.","type":"string"}},{"description":"Specifies the bucket to delete data from.","in":"query","name":"bucket","schema":{"description":"Only points from this bucket are deleted.","type":"string"}},{"description":"Specifies the organization ID of the resource.","in":"query","name":"orgID","schema":{"type":"string"}},{"description":"Specifies the bucket ID to delete data from.","in":"query","name":"bucketID","schema":{"description":"Only points from this bucket ID are deleted.","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletePredicateRequest"}}},"description":"Predicate delete request","required":true},"responses":{"204":{"description":"delete has been accepted"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Invalid request."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"no token was sent or does not have sufficient permissions."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"the bucket or organization is not found."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"internal server error"}},"summary":"Delete time series data from InfluxDB","tags":["Delete"]}},"/documents/templates":{"get":{"operationId":"GetDocumentsTemplates","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"Specifies the name of the organization of the template.","in":"query","name":"org","schema":{"type":"string"}},{"description":"Specifies the organization ID of the template.","in":"query","name":"orgID","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Documents"}}},"description":"A list of template documents"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"List all templates","tags":["Templates"]},"post":{"operationId":"PostDocumentsTemplates","parameters":[{"$ref":"#/components/parameters/TraceSpan"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentCreate"}}},"description":"Template that will be created","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}},"description":"Template created"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Create a template","tags":["Templates"]}},"/documents/templates/{templateID}":{"delete":{"operationId":"DeleteDocumentsTemplatesID","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The template ID.","in":"path","name":"templateID","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Delete has been accepted"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Delete a template","tags":["Templates"]},"get":{"operationId":"GetDocumentsTemplatesID","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The template ID.","in":"path","name":"templateID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}},"description":"The template requested"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Retrieve a template","tags":["Templates"]},"put":{"operationId":"PutDocumentsTemplatesID","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The template ID.","in":"path","name":"templateID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentUpdate"}}},"description":"Template that will be updated","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}},"description":"The newly updated template"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Update a template","tags":["Templates"]}},"/documents/templates/{templateID}/labels":{"get":{"operationId":"GetDocumentsTemplatesIDLabels","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The template ID.","in":"path","name":"templateID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelsResponse"}}},"description":"A list of all labels for a template"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"List all labels for a template","tags":["Templates"]},"post":{"operationId":"PostDocumentsTemplatesIDLabels","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The template ID.","in":"path","name":"templateID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelMapping"}}},"description":"Label to add","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelResponse"}}},"description":"The label added to the template"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Add a label to a template","tags":["Templates"]}},"/documents/templates/{templateID}/labels/{labelID}":{"delete":{"operationId":"DeleteDocumentsTemplatesIDLabelsID","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The template ID.","in":"path","name":"templateID","required":true,"schema":{"type":"string"}},{"description":"The label ID.","in":"path","name":"labelID","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Delete has been accepted"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Template not found"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Delete a label from a template","tags":["Templates"]}},"/flags":{"get":{"operationId":"GetFlags","parameters":[{"$ref":"#/components/parameters/TraceSpan"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Flags"}}},"description":"Feature flags for the currently authenticated user"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"Return the feature flags for the currently authenticated user","tags":["Users"]}},"/health":{"get":{"operationId":"GetHealth","parameters":[{"$ref":"#/components/parameters/TraceSpan"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthCheck"}}},"description":"The instance is healthy"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthCheck"}}},"description":"The instance is unhealthy"},"default":{"$ref":"#/components/responses/ServerError","description":"Unexpected error"}},"summary":"Get the health of an instance","tags":["Health"]},"servers":[{"url":""}]},"/labels":{"get":{"operationId":"GetLabels","parameters":[{"$ref":"#/components/parameters/TraceSpan"},{"description":"The organization ID.","in":"query","name":"orgID","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelsResponse"}}},"description":"A list of labels"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"summary":"List all labels","tags":["Labels"]},"post":{"operationId":"PostLabels","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelCreateRequest"}}},"description":"Label to create","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelResponse"}}},"description":"Added label"},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unexpected error"}},"sum