Push to a remote
import requests
url = "https://api.13-215-85-171.sslip.io/v1/machines/{id}/git/push"
payload = { "path": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)curl --request POST \
--url https://api.13-215-85-171.sslip.io/v1/machines/{id}/git/push \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"path": "<string>"
}
'{
"summary": "<string>"
}Git
Push to a remote
POST
/
v1
/
machines
/
{id}
/
git
/
push
Push to a remote
import requests
url = "https://api.13-215-85-171.sslip.io/v1/machines/{id}/git/push"
payload = { "path": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)curl --request POST \
--url https://api.13-215-85-171.sslip.io/v1/machines/{id}/git/push \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"path": "<string>"
}
'{
"summary": "<string>"
}Authorizations
API key passed as Bearer token
Path Parameters
Machine ID (e.g. mch_a1b2c3d4)
Body
application/json
Per-operation git credentials. Materialised by the guest agent into an op-lifetime scratch path and removed when the operation completes; never persisted to durable guest state by these endpoints.
Show child attributes
Show child attributes
Response
200 - application/json
Push result
Human-readable summary git emitted for the push/pull.