Skip to main content
POST
/
v1
/
machines
/
{id}
/
git
/
add
Stage changes
import requests

url = "https://api.13-215-85-171.sslip.io/v1/machines/{id}/git/add"

payload = { "path": "<string>" }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
{
  "ok": true
}

Authorizations

Authorization
string
header
required

API key passed as Bearer token

Path Parameters

id
string
required

Machine ID (e.g. mch_a1b2c3d4)

Body

application/json
path
string
required
files
string[]

Pathspecs to stage; empty stages everything (-A).

Response

200 - application/json

Stage result

ok
boolean
required