Preview snapshot of the artifact a local binding text maps to
POST
/api/workspaces/{workspaceId}/apps/{id}/bindings/{name}/dev-snapshot
const url = 'http://localhost:8080/api/workspaces/example/apps/example/bindings/example/dev-snapshot';const options = { method: 'POST', headers: {cookie: 'auth_session=<auth_session>', 'Content-Type': 'application/json'}, body: '{"source":"example","dbtEnvironment":"example","dbtDefer":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8080/api/workspaces/example/apps/example/bindings/example/dev-snapshot \ --header 'Content-Type: application/json' \ --cookie auth_session=<auth_session> \ --data '{ "source": "example", "dbtEnvironment": "example", "dbtDefer": true }'The laptop makoData() plugin’s __data/<name>.snapshot.json: send the same body as dev-build, get the snapshot of exactly the stored artifact that dev-build would answer with for that text (the committed artifact, or a cached draft) — never another definition’s. 404 when that text has no stored artifact yet (a build is needed) or the artifact has no snapshot. Never builds anything.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”workspaceId
required
string
id
required
string
name
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
source
required
string
dbtEnvironment
string
dbtDefer
boolean
Example generated
{ "source": "example", "dbtEnvironment": "example", "dbtDefer": true}Responses
Section titled “Responses”Successful response
Media typeapplication/json
object
success
Whether the request succeeded.
boolean
data
Endpoint-specific response payload.
message
string
error
string
Example
{ "message": "Operation completed", "error": "Error message"}Invalid request
Media typeapplication/json
object
success
boolean
error
string
Example
{ "error": "Error message"}Internal server error
Media typeapplication/json
object
success
boolean
error
string
Example
{ "error": "Error message"}