Create Git Configuration
POST
/v1/environments/{id}/gitConfigure git for an environment.
Request
Path Params
id
integer
required
Header Params
Accept
string
required
Example:
application/json
Content-Type
string
required
Example:
application/json
Body Params application/json
data
object
required
attributes
object
required
Example
{
"data": {
"attributes": {
"repodef": "git@github.com:octocat/Hello-World.git",
"branch": "master"
}
}
}
Request samples
Responses
Created(201)
HTTP Code: 201
Content Type : JSONapplication/json
Data Schema
data
object
required
id
integer
required
type
string
required
attributes
object
required
Example
{
"data": {
"id": 78,
"type": "git",
"attributes": {
"localpath": "public",
"git_root": "public.git",
"repodef": "git@github.com:octocat/Hello-World.git",
"branch": "master",
"autopull": false,
"pre_script": null,
"post_script": null,
"repomodified": false,
"enabled": true,
"commit": null,
"last_trigger": null,
"last_status": null,
"last_message": null,
"publickey": "ssh-rsa AAAAB3NzaCtrhADAQABAAABgQDKzY/IqaNBwYjGH7s6qEGs0Q0/aOXI0n8VGrthrthJdbkAZOWE5fenVSs5+omUzqCX4kImqlHl/HV7Y6wN/v2unxRhUapUlITJEttVGkvEhpDdgZeVpDE0uT3xvCvJuDB49451BeGdXFcAcW4y7syNp59+iXCKa20Bk49sSWEKlLRItW67X1jRO1brdeGINNrspz/Iobzl5qgXd8wjbeSkpjtrhmymAH4G9qO6gT9XI3AS37AhuHXppp+6HdfjSZtSiUD/dZFj6GOMzzGgUrxKETLu9ITYyKCHhHfg3dEuk2tBmwJkj8M50/G0IuGPBnP1KEjquD697aOQg+U9HZlixiVZb7SHiYgSY52TFguv2eR0ZbfpKX3YaXSV6oTy1fwdlZYdsu3KUdGZt6Ug8GHlVsLUyl70I15QGgT2TFUkbauh78lzWSnYrav895aw/PKTc3YfsDBh4AOtykOyP9AR6hdWCcbF/mGQJ3hOkRsV70vCHG/haNf3b2tc= thrvebolt-rth-1785"
}
}
}
Modified at 4 months ago