Regenerate Git Public Key
POST
/v1/environments/{id}/git/generate-deploy-keyRegenerate the git public key needed for deployments.
Request
Path Params
id
string
required
Header Params
Accept
string
required
Example:
application/json
Content-Type
string
required
Example:
application/json
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": "2024-05-10T07:21:06.000000Z",
"last_status": true,
"last_message": "Git deploy requested",
"publickey": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDL+/RIL49+IunNhsX55yO32LOmenLtYfKO0Z7oMR2CojqjHpFa9yiePIccZPwGwhRC3m6Jp7bRB6tECMgh7nxpR94Q6Va5Xk701tl7UFrWD6kmtLw3CWuA9z+UEzBbU/t1W8nEPzdrrkyDBazGirCt4E7MUxmQ1YSFIzGjHWPUGGOqt3OQ9vFFsARe/7+NUu7C1ABpmdzJlMarvx2AIkF2AaHWZxohUU6QSxJUgppMfDHnHW8yyZygiV36kIA60GkI2F7ki7YIr55j3rA83mCm77vl10jLajwu5pvWmWM+/rLcW5QkJrGBIfTMrvBjr5Ve1RQnaeFL9aAVJJujzXBvK5koEygXH/eQDDEne76h/SnPd1qaGeq0JhwT0xeLx20M8o76Kjm9p0Ye/WvAQm8NCbVcSb7nIhVPqHX+GWoJ8Bi6v221Lpp0ZWI15uV8PWuYyf2Ttqh5cZqiTspJrOzAZHIRkI7EMG/Y7JgtnTY8Bk9+usx5klmELsLYfmxut7s= Servebolt-test-1785"
}
}
}
Modified at 4 months ago