Merge Prompt Pull Request
(v2)POST
Merges an open pull request: the source branch's latest commit becomes a new merge commit on the target branch, and the pull request is marked merged. Returns the merge commit, whose hash pulls the merged prompt. It fails when the source branch changed after the merge started, in which case retry.
curl -X POST "https://api.confident-ai.com/v2/prompts/{promptId}/pull-requests/{pullRequestId}/merge" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"{
"success": true,
"data": {
"id": "<COMMIT-ID>",
"hash": "bab04ce",
"message": "Committed from API"
},
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Path parameters
promptIdstringRequiredThe unique id of the prompt.
pullRequestIdstringRequiredThe unique id of the pull request.
Response
Merge Prompt Pull Request succeeded.
successbooleanIndicates if the request was successful.
dataobjectShow 3 propertiesHide 3 properties
idstringThe id of a commit generated by Confident AI, not to be confused with the prompt id or the commit hash.
hashstringThe hash of a commit generated by Confident AI.
messagestringThe message associated with a commit, not to be confused with a prompt's messages.
deprecatedbooleanIndicates if this endpoint is deprecated.