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

# Update contract performance obligation

PATCH https://integrators.prod.api.tabsplatform.com/v3/contracts/{id}/performance-obligations/{pobId}
Content-Type: application/json

Reference: https://docs.tabs.com/api-reference/contracts/updatePerformanceObligation

## Authentication

- `Authorization` header (required) — API Key authentication via header

## Request

### Path parameters

- `id` (string, required) — Contract Id
- `pobId` (string, required) — Performance Obligation Id

### Body (application/json)

This endpoint expects an UpdatePerformanceObligationForContractDto.

- `name` (string, optional) — The name of the performance obligation
- `erpClassId` (string, optional, nullable) — The ID of the integration / ERP class (integration class) for this performance obligation
- `itemId` (string, optional, nullable) — The ID of the integration item
- `category` (string, optional) — The revenue category name. An empty string clears it.
- `serviceStartDate` (string, optional) — Service start date
- `serviceEndDate` (string, optional) — Service end date
- `considerationType` (enum, optional) — Consideration type
  - Allowed values: `FIXED`, `VARIABLE`
- `recognitionPattern` (enum, optional) — Recognition pattern
  - Allowed values: `STRAIGHT_LINE`, `RECOGNIZE_AS_CONSUMED`, `RECOGNIZE_AS_BILLED`

## Response

### 200

Performance obligation updated successfully. Includes warnings when the update changed fields the request did not set (for example, service dates after switching to Recognize as billed).

- `payload` (PerformanceObligationDetailResponseDto, required) — Response payload, will be empty when success is false
- `success` (boolean, required) — Boolean with true=success, false=failure
- `message` (string, required) — Plain-text description of the result
- `error` (IntegratorsApiError, optional) — json element with any error messages or warnings

## Errors

### 400 Bad Request Error

Validation error or performance obligation features not enabled

- `any`

### 404 Not Found Error

Contract or performance obligation not found

- `any`

### 500 Internal Server Error

Internal Server Error

- `any`

## Types

### PerformanceObligationDetailResponseDto

- `id` (string, required) — Unique identifier for the performance obligation
- `name` (string, required, nullable) — Name of the performance obligation
- `billingTermGroupId` (string, required, nullable) — Billing term group ID (foreign key)
- `billingTermGroupName` (string, required, nullable) — Billing term group name
- `itemId` (string, required, nullable) — ID of the associated integrationitem
- `itemName` (string, required, nullable) — Name of the associated integrationitem
- `erpClassId` (string, required, nullable) — ID of the ERP class
- `erpClassName` (string, required, nullable) — Name of the ERP class
- `category` (string, required, nullable) — Revenue category
- `productId` (string, required, nullable) — ID of the associated product
- `productName` (string, required, nullable) — Name of the associated product
- `serviceStartDate` (datetime, required) — Service start date
- `serviceEndDate` (datetime, required) — Service end date
- `transactionPrice` (string, required) — Transaction price as a decimal string
- `billingTermIds` (list of string, required) — Array of billing term IDs linked to this POB via the BTG
- `considerationType` (string, required, nullable) — Consideration type
- `recognitionPattern` (string, required, nullable) — Revenue recognition pattern
- `eventTypeId` (string, required, nullable) — Event type ID
- `eventTypeName` (string, required, nullable) — Event type name
- `hasSentInvoice` (boolean, required) — Whether POB has any invoice sent to ERP (SENT, PAID, PARTIALLY_PAID, DONE)
- `recognizedRevenue` (list of RecognizedRevenueAtomResponseDto, required) — Monthly recognized revenue entries for this performance obligation
- `createdAt` (datetime, required) — Timestamp when the performance obligation was created
- `updatedAt` (datetime, required) — Timestamp when the performance obligation was last updated

### IntegratorsApiError

- `code` (double, required) — API response code
- `message` (string, required) — API response message
- `errorCode` (string, optional) — Machine-readable error code
- `details` (IntegratorsApiErrorDetails, optional) — Additional details about the error

### RecognizedRevenueAtomResponseDto

- `timeframe` (string, required) — Month in YYYY-MM format
- `total` (string, required) — Recognized revenue amount as a decimal string

### IntegratorsApiErrorDetails

Additional details about the error

## Examples

**Request**

```json
{}
```

**Response**

```json
{
  "payload": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "Annual Subscription",
    "billingTermGroupId": "123e4567-e89b-12d3-a456-426614174000",
    "billingTermGroupName": "Towing Services",
    "itemId": "123e4567-e89b-12d3-a456-426614174000",
    "itemName": "Enterprise License",
    "erpClassId": "123e4567-e89b-12d3-a456-426614174000",
    "erpClassName": "Software Revenue",
    "category": "SaaS",
    "productId": "123e4567-e89b-12d3-a456-426614174000",
    "productName": "Enterprise Plan",
    "serviceStartDate": "2024-01-01",
    "serviceEndDate": "2024-12-31",
    "transactionPrice": "1000.50",
    "billingTermIds": [
      "123e4567-e89b-12d3-a456-426614174000"
    ],
    "considerationType": "FIXED",
    "recognitionPattern": "STRAIGHT_LINE",
    "eventTypeId": "123e4567-e89b-12d3-a456-426614174000",
    "eventTypeName": "Tow Completion",
    "hasSentInvoice": true,
    "recognizedRevenue": [
      {
        "timeframe": "2024-01",
        "total": "1000.50"
      }
    ],
    "createdAt": "2024-01-01T00:00:00.000Z",
    "updatedAt": "2024-01-01T00:00:00.000Z"
  },
  "success": true,
  "message": "string",
  "error": {
    "code": 1.1,
    "message": "string",
    "errorCode": "string",
    "details": {}
  }
}
```

**SDK Code**

```python
import requests

url = "https://integrators.prod.api.tabsplatform.com/v3/contracts/123e4567-e89b-12d3-a456-426614174000/performance-obligations/123e4567-e89b-12d3-a456-426614174000"

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

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

print(response.json())
```

```javascript
const url = 'https://integrators.prod.api.tabsplatform.com/v3/contracts/123e4567-e89b-12d3-a456-426614174000/performance-obligations/123e4567-e89b-12d3-a456-426614174000';
const options = {
  method: 'PATCH',
  headers: {Authorization: '<apiKey>', 'Content-Type': 'application/json'},
  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://integrators.prod.api.tabsplatform.com/v3/contracts/123e4567-e89b-12d3-a456-426614174000/performance-obligations/123e4567-e89b-12d3-a456-426614174000"

	payload := strings.NewReader("{}")

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

	req.Header.Add("Authorization", "<apiKey>")
	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://integrators.prod.api.tabsplatform.com/v3/contracts/123e4567-e89b-12d3-a456-426614174000/performance-obligations/123e4567-e89b-12d3-a456-426614174000")

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

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

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://integrators.prod.api.tabsplatform.com/v3/contracts/123e4567-e89b-12d3-a456-426614174000/performance-obligations/123e4567-e89b-12d3-a456-426614174000")
  .header("Authorization", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('PATCH', 'https://integrators.prod.api.tabsplatform.com/v3/contracts/123e4567-e89b-12d3-a456-426614174000/performance-obligations/123e4567-e89b-12d3-a456-426614174000', [
  'body' => '{}',
  'headers' => [
    'Authorization' => '<apiKey>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://integrators.prod.api.tabsplatform.com/v3/contracts/123e4567-e89b-12d3-a456-426614174000/performance-obligations/123e4567-e89b-12d3-a456-426614174000");
var request = new RestRequest(Method.PATCH);
request.AddHeader("Authorization", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

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

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

let request = NSMutableURLRequest(url: NSURL(string: "https://integrators.prod.api.tabsplatform.com/v3/contracts/123e4567-e89b-12d3-a456-426614174000/performance-obligations/123e4567-e89b-12d3-a456-426614174000")! 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()
```