> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.taktoria.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.taktoria.com/_mcp/server.

# Update

PATCH https://api.taktoria.com/api/v1/launches/{launchId}/posts/{postId}
Content-Type: application/json

Change a post's body, and an update's health. Only its author may:
through an API key, the person the key belongs to. A post a ticketing
sync brought in (one with a `source`) is that system's: changing it
here is a `409 conflict`; change it there, and the next sync brings
it across. Needs `launches:write`.

Reference: https://docs.taktoria.com/api-reference/posts/update

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Servers

- `https://api.taktoria.com/api/v1` (Production, default)
- `http://localhost:3000/api/v1` (Local)

## Request

### Path parameters

- `launchId` (string, required)
- `postId` (string, required)

### Body (application/json)

This endpoint expects an UpdateLaunchPostRequest.

- `body` (string, required) — Markdown, up to 20,000 characters.
- `health` (enum, optional) — An update's new verdict; left out, unchanged. Ignored on a comment.
  - Allowed values: `ON_TRACK`, `AT_RISK`, `OFF_TRACK`

## Response

### 200

- `id` (string, required)
- `launchId` (string, required)
- `kind` (enum, required)
  - Allowed values: `COMMENT`, `UPDATE`
- `body` (string, required) — Markdown.
- `createdAt` (datetime, required)
- `updatedAt` (datetime, required)
- `health` (enum, optional) — An update's verdict; null on a comment.
  - Allowed values: `ON_TRACK`, `AT_RISK`, `OFF_TRACK`
- `author` (User, optional) — Who wrote it; null when they have left, or for a weekly update carried over from before.
- `editedAt` (datetime, optional) — When its author last changed it.
- `source` (enum, optional) — The ticketing system a post came from, when a sync brought it in from the launch's ticketing project (a status update from Linear or GitHub, or a comment from Jira or ClickUp); null for one written here. Asana's status updates are not brought in: Taktoria's read-only connection cannot read them. Such a post is changed in that system, not here: editing it is a `409 conflict`, and the next sync brings the change across.
  - Allowed values: `LINEAR`, `JIRA`, `GITHUB`, `ASANA`, `CLICKUP`
- `sourceUrl` (string, optional) — The update's address in that system.
- `sourceAuthor` (string, optional) — Its author's name in that system. `author` is the member with that author's email, when there is one.

## Errors

### 404 Not Found Error

- `error` (ErrorDetail, required)

### 403 Forbidden Error

Refused, and `error.code` says why. On an app's write endpoints, a signed-in session is refused `viewer_only` when the person is a Viewer of the app (they read it, and change nothing in it), and `seat_required` without a seat on it; a key is never either. Beyond those: `admin_required` when the change is an admin's (an app admin's for an app's admin powers, a workspace admin's for the workspace's settings), `forbidden` when the person may not change this one thing, `read_only_session` for a change only a key makes, `person_required` for what only a signed-in person does through their own account elsewhere (exporting a LaunchCal artifact to their docs tool), which a key cannot, `insufficient_scope` for a key without the scope, and `google_sign_in_required` for a session the workspace's Google rule turns away. Nothing was done.

- `error` (ErrorDetail, required)

### 409 Conflict Error

The request conflicts with how things stand, and `error.code` says how: `conflict` in general, or an endpoint's own code (`draft`, `launched`, `steps_incomplete`, `ticketing_not_connected`, `docs_not_connected`, …), listed in its description and under Errors and pagination. Nothing was done.

- `error` (ErrorDetail, required)

### 422 Validation Error

- `error` (ErrorDetail, required)

### 429 Too Many Requests Error

Rate limited (`rate_limited`): the key, the signed-in person, the workspace or an expensive endpoint's own budget is used up for now. `Retry-After` says how many seconds to wait, and `details` names the `policy`, its `limit`, `windowSeconds` and `retryAfter`. Every answer to an authenticated request carries the IETF `RateLimit-Policy` and `RateLimit` headers, so a client can slow down before it gets this. Nothing was done; wait and send it again. See "Rate limits".

- `error` (ErrorDetail, required)

## Types

### User

A person in a Taktoria organization.

- `id` (string, required)
- `name` (string, required)
- `email` (string, required)
- `image` (string, optional) — Their picture: one uploaded on the account page, or else their Google profile picture, brought in when they sign in with Google.

### ErrorDetail

- `code` (string, required) — A stable machine-readable code such as `not_found`.
- `message` (string, required)
- `details` (any, optional)

## Examples

**Request**

```json
{
  "body": "body"
}
```

**Response**

```json
{
  "id": "id",
  "launchId": "launchId",
  "kind": "COMMENT",
  "body": "body",
  "createdAt": "2024-01-15T09:30:00Z",
  "updatedAt": "2024-01-15T09:30:00Z",
  "health": "ON_TRACK",
  "author": {
    "id": "id",
    "name": "name",
    "email": "email",
    "image": "image"
  },
  "editedAt": "2024-01-15T09:30:00Z",
  "source": "LINEAR",
  "sourceUrl": "sourceUrl",
  "sourceAuthor": "sourceAuthor"
}
```

**SDK Code**

```python
import requests

url = "https://api.taktoria.com/api/v1/launches/launchId/posts/postId"

payload = { "body": "body" }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.taktoria.com/api/v1/launches/launchId/posts/postId';
const options = {
  method: 'PATCH',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"body":"body"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.taktoria.com/api/v1/launches/launchId/posts/postId"

	payload := strings.NewReader("{\n  \"body\": \"body\"\n}")

	req, _ := http.NewRequest("PATCH", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.taktoria.com/api/v1/launches/launchId/posts/postId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"body\": \"body\"\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.patch("https://api.taktoria.com/api/v1/launches/launchId/posts/postId")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"body\": \"body\"\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PATCH', 'https://api.taktoria.com/api/v1/launches/launchId/posts/postId', [
  'body' => '{
  "body": "body"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.taktoria.com/api/v1/launches/launchId/posts/postId");
var request = new RestRequest(Method.PATCH);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"body\": \"body\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = ["body": "body"] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.taktoria.com/api/v1/launches/launchId/posts/postId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```