Introducing Confident Voice: Watch the Launch Video Now

Close Prompt Pull Request

(v2)

POST

Closes an open pull request without merging it. A merged or closed pull request cannot be closed.

POST/v2/prompts/{promptId}/pull-requests/{pullRequestId}/close
curl -X POST "https://api.confident-ai.com/v2/prompts/{promptId}/pull-requests/{pullRequestId}/close" \
  -H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"
200
{
  "success": true,
  "data": {
    "id": "<PULL-REQUEST-ID>"
  },
  "deprecated": false
}

Headers

  • CONFIDENT_API_KEYstringRequired

    The API key of your Confident AI project.

Path parameters

  • promptIdstringRequired

    The unique id of the prompt.

  • pullRequestIdstringRequired

    The unique id of the pull request.

Response

Close Prompt Pull Request succeeded.

  • successboolean

    Indicates if the request was successful.

  • dataobject

    A reference to a prompt pull request by its id.

    Show 1 propertyHide 1 property
    • idstring

      The unique id of the pull request.

  • deprecatedboolean

    Indicates if this endpoint is deprecated.

Built byConfident AI