Skip to content

Generate Install

POST
/repos/{repo_id}/install

Generate a patch set describing the changes needed to install the GTM spine.

Server-side only: returns a PatchSetResponse whose patches array describes the file changes (new files, modifications, snippets to add). The caller is responsible for applying them to the local filesystem — typically the g8 CLI, but any MCP client can consume the patch array directly. Follow up with POST /install/apply once patches are on disk.

Authorizations

Parameters

Path Parameters

repo_id
required

Repository ID

string

Repository ID

Header Parameters

X-Target-Org-Id
Any of:
string

Responses

200

Successful Response

object
data
required
object
applied_at
Any of:
string format: date-time
created_at
Any of:
string format: date-time
id
required
string format: uuid
patches
required
Array<object>
object
action
required
string
content
Any of:
string
description
required
string
diff
Any of:
string
file_path
required
string
repo_id
required
string format: uuid
rolled_back_at
Any of:
string format: date-time
status
required
string
pagination
Any of:
object
has_next
required

Whether there are more pages

boolean
limit
required

Items per page

integer
next_cursor
Any of:
string
page
required

Current page number (1-indexed)

integer
total
required

Total number of items

integer

422

Validation Error

object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string