Update Git Configuration
PUT
/v1/environments/{id}/gitUpdate the git configuration of 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
OK(200)
HTTP Code: 200
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": true,
"enabled": true,
"commit": null,
"last_trigger": null,
"last_status": null,
"last_message": null
}
}
}
Modified at 4 months ago