/publications
POST
/publicationsTo create a publication from an App. For the version parameter use "latest" for production or "preview" for development, "latest" use the last published version of an App.
Request
Query Params
app
string <uuid>
required
version
string | null
optional
Body Params application/json
attributes
object
required
Sets the attributes values that will influence the generation.
Additional properties
array[string]
optional
fastPass
boolean
optional
Does a quicker "fast pass", that does not expand expensive blocks. (e.g. AI blocks, exports...).
Default:
false
seed
integer <int64> | null
optional
Sets the seed to get reproducible results. (nb: some blocks will always act non-deterministically, for example AI ones).
Example
{
"attributes": {
"property1": [
"string"
],
"property2": [
"string"
]
},
"fastPass": false,
"seed": 0
}
Request samples
Responses
OK(200)
Bad Request(400)
413(413)
415(415)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
Output DTO for the `render_block` endpoint when `stream` is `false`.
blocks
object
required
Additional properties
BlockContent
publicationId
string <uuid>
required
Example
{
"blocks": {
"property1": {
"content": "string",
"kind": "html"
},
"property2": {
"content": "string",
"kind": "html"
}
},
"publicationId": "aac799f4-ea8f-4114-9093-24db2fa60ec5"
}
Last modified: 11 days ago