Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 50 additions & 8 deletions api-reference/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2679,34 +2679,44 @@
}
}
},
"/api/pulse": {
"/api/pulses": {
"get": {
"description": "Retrieve pulse information for the authenticated account.",
"description": "Retrieve pulse information for accounts. For personal API keys, returns an array with a single pulse for the key owner's account. For organization API keys, returns pulses for all accounts within the organization.",
"parameters": [
{
"name": "account_id",
"in": "query",
"description": "UUID of the account to retrieve the pulse for. Only applicable for organization API keys - org keys can specify an account_id for any account within their organization. If not provided, returns the pulse for the API key's own account.",
"description": "Filter to a specific account. Only applicable for organization API keys - org keys can filter to any account within their organization. Personal keys cannot use this parameter.",
"required": false,
"schema": {
"type": "string",
"format": "uuid"
}
},
{
"name": "active",
"in": "query",
"description": "Filter by active status. Set to 'true' to return only active pulses, 'false' for inactive pulses. If not provided, returns all pulses regardless of active status.",
"required": false,
"schema": {
"type": "string",
"enum": ["true", "false"]
}
}
],
"responses": {
"200": {
"description": "Pulse retrieved successfully",
"description": "Pulses retrieved successfully",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PulseResponse"
"$ref": "#/components/schemas/PulsesResponse"
}
}
}
},
"400": {
"description": "Bad request",
"description": "Bad request - invalid query parameters",
"content": {
"application/json": {
"schema": {
Expand All @@ -2724,11 +2734,21 @@
}
}
}
},
"403": {
"description": "Forbidden - account_id is not a member of the organization or personal key tried to filter by account_id",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
},
"patch": {
"description": "Update the pulse settings for the authenticated account. Use this to enable or disable the pulse.",
"description": "Update the pulse settings for an account. Use this to enable or disable the pulse. Returns an array of pulses for consistency with the GET endpoint.",
"requestBody": {
"description": "Pulse fields to update",
"required": true,
Expand All @@ -2746,7 +2766,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PulseResponse"
"$ref": "#/components/schemas/PulsesResponse"
}
}
}
Expand Down Expand Up @@ -6845,6 +6865,28 @@
}
}
},
"PulsesResponse": {
"type": "object",
"required": ["status", "pulses"],
"properties": {
"status": {
"type": "string",
"enum": ["success", "error"],
"description": "Status of the request"
},
"pulses": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Pulse"
},
"description": "Array of pulse objects. For personal keys, contains one pulse. For org keys, contains pulses for all accounts in the organization."
},
"error": {
"type": "string",
"description": "Error message (only present if status is error)"
}
}
},
"UpdatePulseRequest": {
"type": "object",
"required": ["active"],
Expand Down
4 changes: 0 additions & 4 deletions api-reference/pulse/get.mdx

This file was deleted.

4 changes: 4 additions & 0 deletions api-reference/pulses/list.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: 'List Pulses'
openapi: 'GET /api/pulses'
---
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
title: 'Update Pulse'
openapi: 'PATCH /api/pulse'
openapi: 'PATCH /api/pulses'
---
6 changes: 3 additions & 3 deletions docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@
]
},
{
"group": "Pulse",
"group": "Pulses",
"pages": [
"api-reference/pulse/get",
"api-reference/pulse/update"
"api-reference/pulses/list",
"api-reference/pulses/update"
]
},
{
Expand Down