Shardflux Template drafts API
Draft templates: iterate on states and test instances, then publish a version.
Operations 18
POST
/v1/organizations/{organization_id}/templates/{slug}/draft
Create the template’s draft (a layered workspace on the draft base)
#
DELETE
/v1/organizations/{organization_id}/templates/{slug}/draft
Discard the draft (delete it and end its live test instances)
#
POST
/v1/templates/{slug}/draft
Create the template’s draft (a layered workspace on the draft base)
#
GET
/v1/organizations/{organization_id}/templates/{slug}/draft/states
List the draft’s states, newest first
#
POST
/v1/organizations/{organization_id}/templates/{slug}/draft/states
Capture a draft state (disk-only layer_snapshot of the running draft)
#
POST
/v1/templates/{slug}/draft/states
Capture a draft state (disk-only layer_snapshot of the running draft)
#
GET
/v1/organizations/{organization_id}/templates/{slug}/draft/test-instances
List the draft’s test instances
#
POST
/v1/organizations/{organization_id}/templates/{slug}/draft/test-instances
Open a test instance of a draft state (a disposable session workspace)
#
POST
/v1/templates/{slug}/draft/test-instances
Open a test instance of a draft state (a disposable session workspace)
#
POST
/v1/organizations/{organization_id}/templates/{slug}/draft/publish
Publish the draft as the template’s next version (save-as-template from the…
#
POST
/v1/templates/{slug}/draft/publish
Publish the draft as the template’s next version (save-as-template from the…
#
POST
/v1/organizations/{organization_id}/templates/{slug}/versions/{version}/test-instances
Open a test instance of a template version, published or not
#
POST
/v1/templates/{slug}/versions/{version}/test-instances
Open a test instance of a template version, published or not
#