Sync collection with spec
syncCollectionWithSpecAlign a Postman collection with its source API specification by syncing changes. Accepts collection UID and spec ID for OpenAPI 2.0, 3.0, or 3.1 specs.
Instructions
Syncs a collection generated from an API specification. This is an asynchronous endpoint that returns an HTTP `202 Accepted` response.
Note:
This endpoint only supports the OpenAPI 2.0, 3.0, and 3.1 specification types.
You can only sync collections generated from the given spec ID.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"collectionUid": "<collectionUid>",
"specId": "<specId>"
},
"name": "syncCollectionWithSpec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| specId | Yes | The spec's ID. | |
| collectionUid | Yes | The collection's unique ID. |