fix formatting

This commit is contained in:
Fendy Heryanto
2026-01-28 10:15:30 +00:00
parent fb5922a166
commit fd7c5d1d36

View File

@@ -5601,164 +5601,164 @@
}
}
}
}
},
"/api/v3/meta/tokens": {
"get": {
"summary": "List API tokens",
"description": "Retrieve a list of all API tokens for the organization.\n\n**Note**: \nAPI Token APIs are available only with self-hosted **Enterprise** plans and cloud-hosted **Enterprise** plans.\n> **Beta**: These APIs are currently in beta and subject to change in future releases.",
"tags": [
"API Tokens"
],
"security": [
{
"xc-token": []
}
],
"responses": {
"200": {
"description": "List of API tokens",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"list": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ApiTokenV3"
},
"/api/v3/meta/tokens": {
"get": {
"summary": "List API tokens",
"description": "Retrieve a list of all API tokens for the organization.\n\n**Note**: \nAPI Token APIs are available only with self-hosted **Enterprise** plans and cloud-hosted **Enterprise** plans.\n> **Beta**: These APIs are currently in beta and subject to change in future releases.",
"tags": [
"API Tokens"
],
"security": [
{
"xc-token": []
}
],
"responses": {
"200": {
"description": "List of API tokens",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"list": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ApiTokenV3"
}
}
}
}
}
}
}
},
"401": {
"$ref": "#/components/responses/UnauthorizedV3"
},
"403": {
"$ref": "#/components/responses/ForbiddenV3"
},
"500": {
"$ref": "#/components/responses/InternalServerErrorV3"
}
}
},
"post": {
"summary": "Create API token",
"description": "Create a new API token for the organization.\n\n**Note**: API Token APIs are available only with self-hosted **Enterprise** plans and cloud-hosted **Enterprise** plans.\n> **Beta**: These APIs are currently in beta and subject to change in future releases.",
"tags": [
"API Tokens"
],
"security": [
{
"xc-token": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"title"
],
"properties": {
"title": {
"type": "string",
"description": "Title / description for the API token",
"example": "Github Integration"
}
}
}
},
"401": {
"$ref": "#/components/responses/UnauthorizedV3"
},
"403": {
"$ref": "#/components/responses/ForbiddenV3"
},
"500": {
"$ref": "#/components/responses/InternalServerErrorV3"
}
}
},
"responses": {
"200": {
"description": "Created API token",
"post": {
"summary": "Create API token",
"description": "Create a new API token for the organization.\n\n**Note**: API Token APIs are available only with self-hosted **Enterprise** plans and cloud-hosted **Enterprise** plans.\n> **Beta**: These APIs are currently in beta and subject to change in future releases.",
"tags": [
"API Tokens"
],
"security": [
{
"xc-token": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiTokenWithTokenV3"
},
"examples": {
"created": {
"value": {
"id": 5,
"title": "Github Integration",
"token": "wxAFzFO2wwOf9ozVRjragBJ7KPWMaW2OGpklGqHh",
"created_at": "2025-12-30 15:17:24+00:00",
"updated_at": "2025-12-30 15:17:24+00:00"
"type": "object",
"required": [
"title"
],
"properties": {
"title": {
"type": "string",
"description": "Title / description for the API token",
"example": "Github Integration"
}
}
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequestV3"
},
"401": {
"$ref": "#/components/responses/UnauthorizedV3"
},
"403": {
"$ref": "#/components/responses/ForbiddenV3"
},
"500": {
"$ref": "#/components/responses/InternalServerErrorV3"
}
}
}
},
"/api/v3/meta/tokens/{tokenId}": {
"delete": {
"summary": "Delete API token",
"description": "Delete an API token by its ID.\n\n**Note**: API Token APIs are available only with self-hosted **Enterprise** plans and cloud-hosted **Enterprise** plans.\n> **Beta**: These APIs are currently in beta and subject to change in future releases.",
"tags": [
"API Tokens"
],
"security": [
{
"xc-token": []
}
],
"parameters": [
{
"name": "tokenId",
"in": "path",
"required": true,
"description": "ID of the API token to delete",
"schema": {
"type": "string",
"example": "5"
}
}
],
"responses": {
"200": {
"description": "Deleted API token",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiTokenV3"
"responses": {
"200": {
"description": "Created API token",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiTokenWithTokenV3"
},
"examples": {
"created": {
"value": {
"id": 5,
"title": "Github Integration",
"token": "wxAFzFO2wwOf9ozVRjragBJ7KPWMaW2OGpklGqHh",
"created_at": "2025-12-30 15:17:24+00:00",
"updated_at": "2025-12-30 15:17:24+00:00"
}
}
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequestV3"
},
"401": {
"$ref": "#/components/responses/UnauthorizedV3"
},
"403": {
"$ref": "#/components/responses/ForbiddenV3"
},
"500": {
"$ref": "#/components/responses/InternalServerErrorV3"
}
}
}
},
"/api/v3/meta/tokens/{tokenId}": {
"delete": {
"summary": "Delete API token",
"description": "Delete an API token by its ID.\n\n**Note**: API Token APIs are available only with self-hosted **Enterprise** plans and cloud-hosted **Enterprise** plans.\n> **Beta**: These APIs are currently in beta and subject to change in future releases.",
"tags": [
"API Tokens"
],
"security": [
{
"xc-token": []
}
],
"parameters": [
{
"name": "tokenId",
"in": "path",
"required": true,
"description": "ID of the API token to delete",
"schema": {
"type": "string",
"example": "5"
}
}
],
"responses": {
"200": {
"description": "Deleted API token",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiTokenV3"
}
}
}
},
"401": {
"$ref": "#/components/responses/UnauthorizedV3"
},
"403": {
"$ref": "#/components/responses/ForbiddenV3"
},
"404": {
"$ref": "#/components/responses/NotFoundV3"
},
"500": {
"$ref": "#/components/responses/InternalServerErrorV3"
}
},
"401": {
"$ref": "#/components/responses/UnauthorizedV3"
},
"403": {
"$ref": "#/components/responses/ForbiddenV3"
},
"404": {
"$ref": "#/components/responses/NotFoundV3"
},
"500": {
"$ref": "#/components/responses/InternalServerErrorV3"
}
}
}