fdback.iofdback.io

Update a post

Update an existing feedback post. Only provided fields are updated. Supports JSON or multipart/form-data (for file attachments).

The description field accepts markdown or plain text.

PATCH
/posts/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

API key with sk_live_ or sk_test_ prefix. Create keys in your workspace settings.

In: header

Path Parameters

id*string

Post ID

Request Body

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X PATCH "https://app.fdback.io/api/v1/posts/string" \  -H "Content-Type: application/json" \  -d '{}'
{
  "data": {
    "id": "string",
    "title": "string",
    "description": {},
    "descriptionHtml": "string",
    "postTypeId": "string",
    "statusId": "string",
    "votesCount": 0,
    "commentsCount": 0,
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z"
  },
  "test": true
}
{
  "error": {
    "code": "BAD_REQUEST",
    "message": "Missing required field: title",
    "status": 400
  }
}
{
  "error": {
    "code": "UNAUTHORIZED",
    "message": "Invalid API key.",
    "status": 401
  }
}
{
  "error": {
    "code": "RATE_LIMITED",
    "message": "Too many requests. Please try again later.",
    "status": 429
  }
}