Code references

Delete branches

POST
/api/v2/code-refs/repositories/{repo}/branch-delete-tasks

Asynchronously delete a number of branches.

Authorization

ApiKey read, write
Authorization<token>

In: header

Scope: read, write

Path Parameters

repo*string

The repository name to delete branches for.

Formatstring

Request Body

application/json

[index: integer]?string

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v2/code-refs/repositories/string/branch-delete-tasks" \  -H "Content-Type: application/json" \  -d '[    "branch-to-be-deleted",    "another-branch-to-be-deleted"  ]'
Empty