Promote Surface to Imprint
curl --request POST \
--url https://api.example.com/v0/surfaces/{publicId}/promote-to-imprintimport requests
url = "https://api.example.com/v0/surfaces/{publicId}/promote-to-imprint"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/v0/surfaces/{publicId}/promote-to-imprint', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v0/surfaces/{publicId}/promote-to-imprint",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v0/surfaces/{publicId}/promote-to-imprint"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/v0/surfaces/{publicId}/promote-to-imprint")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v0/surfaces/{publicId}/promote-to-imprint")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodySurfaces
Promote Surface to Imprint
POST /v0/surfaces//promote-to-imprint — Pin a package-backed mount Surface in an imprint draft.
POST
/
v0
/
surfaces
/
{publicId}
/
promote-to-imprint
Promote Surface to Imprint
curl --request POST \
--url https://api.example.com/v0/surfaces/{publicId}/promote-to-imprintimport requests
url = "https://api.example.com/v0/surfaces/{publicId}/promote-to-imprint"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/v0/surfaces/{publicId}/promote-to-imprint', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v0/surfaces/{publicId}/promote-to-imprint",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v0/surfaces/{publicId}/promote-to-imprint"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/v0/surfaces/{publicId}/promote-to-imprint")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v0/surfaces/{publicId}/promote-to-imprint")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyWrite a mount Surface into its imprint’s draft
The draft must be package-backed, currently authorized, and have a passing validation row for the exact package manifest/runtime/policy identity. Personal imprints can pin packages owned by the imprint owner. Team imprints require the package’s durable exact-version team grant; an authorized package owner can mint that grant during promotion.
This updates the imprint draft and does not publish the imprint. Runtime-template materialization remains H5-pending, so this endpoint is not part of the public HTML compatibility workflow.
surfaces[] manifest as an exact immutable package reference.
{
"ok": true,
"data": {
"alias": "signals-board",
"bundleVersionId": "8a5b0000-0000-4000-8000-000000000001",
"default": true
}
}
| Field | Type | Required | Description |
|---|---|---|---|
alias | string | No | Template alias; reusing it replaces that entry |
default | boolean | No | Make this the single default template |