Skip to Content
Comments

Toggle Comment Pin

PUT
/v0/projects/{idOrSlug}/comments/{commentId}/pin

Authorization

apiKeyAuth
headerx-api-key<token>

FastStats API key. Pass it in the x-api-key header or as a Bearer token in the Authorization header.

Path Parameters

idOrSlug*string
commentId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$
Formatuuid

Request Body

application/json
  1. body
pinned*boolean

Response Body

Comment

application/json
  1. response
id*string
targetType*string
Value in"error_issue""session_replay"
targetId*string
authorId*string
authorName*string|null
authorImage*string|null
content*string
source*string
Value in"app""mcp"
replyTo*|null
anchorAt*string|null
editedAt*string|null
pinnedAt*string|null
pinnedByUserId*string|null
createdAt*string
updatedAt*string
Example Request
curl -X PUT 'https://api.faststats.dev/v0/projects/string/comments/497f6eca-6276-4993-bfeb-53cbbbba6f08/pin' \
  -H 'Content-Type: application/json' \
  -d '{
  "pinned": true
}'
Example Response
{
  "id": "string",
  "targetType": "error_issue",
  "targetId": "string",
  "authorId": "string",
  "authorName": "string",
  "authorImage": "string",
  "content": "string",
  "source": "app",
  "replyTo": {
    "id": "string",
    "authorId": "string",
    "authorName": "string",
    "preview": "string"
  },
  "anchorAt": "string",
  "editedAt": "string",
  "pinnedAt": "string",
  "pinnedByUserId": "string",
  "createdAt": "string",
  "updatedAt": "string"
}