Skip to content

Preview snapshot of the artifact a local binding text maps to

POST
/api/workspaces/{workspaceId}/apps/{id}/bindings/{name}/dev-snapshot
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.

workspaceId
required
string
id
required
string
name
required
string
Media typeapplication/json
object
source
required
string
>= 1 characters <= 524288 characters
dbtEnvironment
string
>= 1 characters <= 64 characters
dbtDefer
boolean

Example generated

{
"source": "example",
"dbtEnvironment": "example",
"dbtDefer": true
}

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"
}