LogoFreestyle
API ReferenceGit

Create a git trigger

Create a git trigger for the given repository.

POST
/git/v1/repo/{repo}/trigger

Path Parameters

repo*string

The repository id

Formatuuid

Request Body

application/json

trigger*
action*

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://api.freestyle.sh/git/v1/repo/497f6eca-6276-4993-bfeb-53cbbbba6f08/trigger" \  -H "Content-Type: application/json" \  -d '{    "trigger": {      "event": "push"    },    "action": {      "endpoint": "string",      "action": "webhook"    }  }'
{
  "triggerId": "b89c9c0a-30c6-475a-b185-93813e22ffcf"
}
{
  "message": "string"
}
{
  "message": "string"
}
{
  "message": "string"
}
{
  "message": "string"
}

Freestyle AI

Documentation assistant

Experimental: AI responses may not always be accurate—please verify important details with the official documentation.

How can I help?

Ask me about Freestyle while you browse the docs.