File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -143,4 +143,43 @@ Description of what API calls are made when user performs UI actions.
143143 name: forked box name
144144 response:
145145 instance object
146- ```
146+ ```
147+
148+
149+ ### Update box to commit version
150+
151+ ```
152+ // create new context verison
153+ POST /contexts/:context_id/versions
154+ request:
155+ infraCodeVersion: id of existing infracode version
156+ response:
157+ new contex version withou appCode
158+ // create new app code version
159+ POST /contexts/:context_id/versions/:created_context_version_id/appCodeVersions/
160+ request:
161+ branch:
162+ commit:
163+ repo:
164+ response:
165+ new app code version
166+ // create new build
167+ POST /builds
168+ request:
169+ owner: github owner data
170+ contextVersions: [context version id]
171+ response:
172+ new build object
173+ // build a build
174+ POST /builds/:new_build_id/actions/build
175+ request:
176+ message: "Update application code version(s)"
177+ response:
178+ build object
179+ // patch instance with a new build
180+ PATCH /instances/:instance_id/
181+ request:
182+ build: build_id
183+ response:
184+ instance object
185+ ```
You can’t perform that action at this time.
0 commit comments