cURL
curl --request POST \ --url https://capy.ai/api/v1/tasks/{taskId}/pr \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "draft": true, "title": "<string>", "description": "<string>" } '
{ "url": "<string>", "number": 0, "title": "<string>", "headRef": "<string>", "baseRef": "<string>", "draft": true }
Create a pull request for a task.
API token (capy_xxxx). Generate at capy.ai/settings/tokens
Task identifier. Accepts both UUID and PREFIX-NNN formats.
Success
-9007199254740991 <= x <= 9007199254740991
Was this page helpful?