ProjectTemplates
Create project template
POST
/
api
/
develop
/
v1
/
customer-project-templates
Create project template
curl --request POST \
--url https://mycluster.domino.tech/api/develop/v1/customer-project-templates \
--header 'Content-Type: application/json' \
--header 'X-Domino-Api-Key: <api-key>' \
--data '
{
"access": {
"collaborators": [
{
"id": "<string>",
"role": "template_user"
}
]
},
"definition": {
"settings": {
"defaultEnvironmentRevision": {
"environmentId": "<string>",
"id": "<string>"
},
"defaultHardwareTier": {
"id": "<string>",
"name": "<string>"
}
}
},
"name": "<string>",
"sourceProject": {
"gitProviderCodeSpec": {
"credentialId": "<string>",
"repoName": "<string>",
"repoOwnerName": "<string>"
},
"id": "<string>",
"included": []
},
"description": "<string>"
}
'import requests
url = "https://mycluster.domino.tech/api/develop/v1/customer-project-templates"
payload = {
"access": { "collaborators": [
{
"id": "<string>",
"role": "template_user"
}
] },
"definition": { "settings": {
"defaultEnvironmentRevision": {
"environmentId": "<string>",
"id": "<string>"
},
"defaultHardwareTier": {
"id": "<string>",
"name": "<string>"
}
} },
"name": "<string>",
"sourceProject": {
"gitProviderCodeSpec": {
"credentialId": "<string>",
"repoName": "<string>",
"repoOwnerName": "<string>"
},
"id": "<string>",
"included": []
},
"description": "<string>"
}
headers = {
"X-Domino-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Domino-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
access: {collaborators: [{id: '<string>', role: 'template_user'}]},
definition: {
settings: {
defaultEnvironmentRevision: {environmentId: '<string>', id: '<string>'},
defaultHardwareTier: {id: '<string>', name: '<string>'}
}
},
name: '<string>',
sourceProject: {
gitProviderCodeSpec: {credentialId: '<string>', repoName: '<string>', repoOwnerName: '<string>'},
id: '<string>',
included: []
},
description: '<string>'
})
};
fetch('https://mycluster.domino.tech/api/develop/v1/customer-project-templates', 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://mycluster.domino.tech/api/develop/v1/customer-project-templates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'access' => [
'collaborators' => [
[
'id' => '<string>',
'role' => 'template_user'
]
]
],
'definition' => [
'settings' => [
'defaultEnvironmentRevision' => [
'environmentId' => '<string>',
'id' => '<string>'
],
'defaultHardwareTier' => [
'id' => '<string>',
'name' => '<string>'
]
]
],
'name' => '<string>',
'sourceProject' => [
'gitProviderCodeSpec' => [
'credentialId' => '<string>',
'repoName' => '<string>',
'repoOwnerName' => '<string>'
],
'id' => '<string>',
'included' => [
]
],
'description' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Domino-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://mycluster.domino.tech/api/develop/v1/customer-project-templates"
payload := strings.NewReader("{\n \"access\": {\n \"collaborators\": [\n {\n \"id\": \"<string>\",\n \"role\": \"template_user\"\n }\n ]\n },\n \"definition\": {\n \"settings\": {\n \"defaultEnvironmentRevision\": {\n \"environmentId\": \"<string>\",\n \"id\": \"<string>\"\n },\n \"defaultHardwareTier\": {\n \"id\": \"<string>\",\n \"name\": \"<string>\"\n }\n }\n },\n \"name\": \"<string>\",\n \"sourceProject\": {\n \"gitProviderCodeSpec\": {\n \"credentialId\": \"<string>\",\n \"repoName\": \"<string>\",\n \"repoOwnerName\": \"<string>\"\n },\n \"id\": \"<string>\",\n \"included\": []\n },\n \"description\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Domino-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://mycluster.domino.tech/api/develop/v1/customer-project-templates")
.header("X-Domino-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"access\": {\n \"collaborators\": [\n {\n \"id\": \"<string>\",\n \"role\": \"template_user\"\n }\n ]\n },\n \"definition\": {\n \"settings\": {\n \"defaultEnvironmentRevision\": {\n \"environmentId\": \"<string>\",\n \"id\": \"<string>\"\n },\n \"defaultHardwareTier\": {\n \"id\": \"<string>\",\n \"name\": \"<string>\"\n }\n }\n },\n \"name\": \"<string>\",\n \"sourceProject\": {\n \"gitProviderCodeSpec\": {\n \"credentialId\": \"<string>\",\n \"repoName\": \"<string>\",\n \"repoOwnerName\": \"<string>\"\n },\n \"id\": \"<string>\",\n \"included\": []\n },\n \"description\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mycluster.domino.tech/api/develop/v1/customer-project-templates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Domino-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"access\": {\n \"collaborators\": [\n {\n \"id\": \"<string>\",\n \"role\": \"template_user\"\n }\n ]\n },\n \"definition\": {\n \"settings\": {\n \"defaultEnvironmentRevision\": {\n \"environmentId\": \"<string>\",\n \"id\": \"<string>\"\n },\n \"defaultHardwareTier\": {\n \"id\": \"<string>\",\n \"name\": \"<string>\"\n }\n }\n },\n \"name\": \"<string>\",\n \"sourceProject\": {\n \"gitProviderCodeSpec\": {\n \"credentialId\": \"<string>\",\n \"repoName\": \"<string>\",\n \"repoOwnerName\": \"<string>\"\n },\n \"id\": \"<string>\",\n \"included\": []\n },\n \"description\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"access": {
"collaborators": [
{
"id": "<string>",
"role": "template_user"
}
],
"visibility": "private"
},
"categories": [
"<string>"
],
"created": "2023-11-07T05:31:56Z",
"id": "<string>",
"isCompanyOfficial": true,
"name": "<string>",
"owner": {
"name": "<string>",
"link": "<string>"
},
"templateType": "customer",
"updated": "2023-11-07T05:31:56Z",
"definition": {
"backingProject": {
"id": "<string>",
"name": "<string>",
"owner": {
"username": "<string>"
}
},
"projectType": "git_based",
"settings": {
"defaultEnvironmentRevision": {
"environment": {
"id": "<string>",
"name": "<string>"
},
"id": "<string>"
},
"defaultHardwareTier": {
"id": "<string>",
"name": "<string>"
},
"computeClusterEnvironmentRevision": {
"environment": {
"id": "<string>",
"name": "<string>"
},
"id": "<string>"
}
}
},
"isArchived": true,
"sourceProject": {
"id": "<string>",
"included": [
"Artifacts"
],
"name": "<string>",
"owner": {
"username": "<string>"
}
},
"base64Logo": "<string>",
"description": "<string>",
"license": "<string>",
"recommended": true,
"revisionId": "<string>",
"taxonomyTags": [
{
"id": "<string>",
"label": "<string>",
"namespaceId": "<string>",
"description": "<string>",
"fullPath": [
"<string>"
],
"namespaceLabel": "<string>"
}
]
}{
"error": "<string>"
}{
"code": "UNAUTHORIZED",
"message": "Authentication is required to access this resource."
}{
"code": "FORBIDDEN",
"message": "You do not have permission to perform this action."
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
nucleus_DominoApiKeynucleus_BearerAuthentication
Body
application/json
Project template to create
Response
Created
Show child attributes
Show child attributes
Whether or not this template is marked as official
Show child attributes
Show child attributes
Available options:
customer, ecosystem Show child attributes
Show child attributes
Show child attributes
Show child attributes
Taxonomy tags associated with this template.
Show child attributes
Show child attributes
Last modified on August 27, 2026
Was this page helpful?
⌘I
Create project template
curl --request POST \
--url https://mycluster.domino.tech/api/develop/v1/customer-project-templates \
--header 'Content-Type: application/json' \
--header 'X-Domino-Api-Key: <api-key>' \
--data '
{
"access": {
"collaborators": [
{
"id": "<string>",
"role": "template_user"
}
]
},
"definition": {
"settings": {
"defaultEnvironmentRevision": {
"environmentId": "<string>",
"id": "<string>"
},
"defaultHardwareTier": {
"id": "<string>",
"name": "<string>"
}
}
},
"name": "<string>",
"sourceProject": {
"gitProviderCodeSpec": {
"credentialId": "<string>",
"repoName": "<string>",
"repoOwnerName": "<string>"
},
"id": "<string>",
"included": []
},
"description": "<string>"
}
'import requests
url = "https://mycluster.domino.tech/api/develop/v1/customer-project-templates"
payload = {
"access": { "collaborators": [
{
"id": "<string>",
"role": "template_user"
}
] },
"definition": { "settings": {
"defaultEnvironmentRevision": {
"environmentId": "<string>",
"id": "<string>"
},
"defaultHardwareTier": {
"id": "<string>",
"name": "<string>"
}
} },
"name": "<string>",
"sourceProject": {
"gitProviderCodeSpec": {
"credentialId": "<string>",
"repoName": "<string>",
"repoOwnerName": "<string>"
},
"id": "<string>",
"included": []
},
"description": "<string>"
}
headers = {
"X-Domino-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Domino-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
access: {collaborators: [{id: '<string>', role: 'template_user'}]},
definition: {
settings: {
defaultEnvironmentRevision: {environmentId: '<string>', id: '<string>'},
defaultHardwareTier: {id: '<string>', name: '<string>'}
}
},
name: '<string>',
sourceProject: {
gitProviderCodeSpec: {credentialId: '<string>', repoName: '<string>', repoOwnerName: '<string>'},
id: '<string>',
included: []
},
description: '<string>'
})
};
fetch('https://mycluster.domino.tech/api/develop/v1/customer-project-templates', 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://mycluster.domino.tech/api/develop/v1/customer-project-templates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'access' => [
'collaborators' => [
[
'id' => '<string>',
'role' => 'template_user'
]
]
],
'definition' => [
'settings' => [
'defaultEnvironmentRevision' => [
'environmentId' => '<string>',
'id' => '<string>'
],
'defaultHardwareTier' => [
'id' => '<string>',
'name' => '<string>'
]
]
],
'name' => '<string>',
'sourceProject' => [
'gitProviderCodeSpec' => [
'credentialId' => '<string>',
'repoName' => '<string>',
'repoOwnerName' => '<string>'
],
'id' => '<string>',
'included' => [
]
],
'description' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Domino-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://mycluster.domino.tech/api/develop/v1/customer-project-templates"
payload := strings.NewReader("{\n \"access\": {\n \"collaborators\": [\n {\n \"id\": \"<string>\",\n \"role\": \"template_user\"\n }\n ]\n },\n \"definition\": {\n \"settings\": {\n \"defaultEnvironmentRevision\": {\n \"environmentId\": \"<string>\",\n \"id\": \"<string>\"\n },\n \"defaultHardwareTier\": {\n \"id\": \"<string>\",\n \"name\": \"<string>\"\n }\n }\n },\n \"name\": \"<string>\",\n \"sourceProject\": {\n \"gitProviderCodeSpec\": {\n \"credentialId\": \"<string>\",\n \"repoName\": \"<string>\",\n \"repoOwnerName\": \"<string>\"\n },\n \"id\": \"<string>\",\n \"included\": []\n },\n \"description\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Domino-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://mycluster.domino.tech/api/develop/v1/customer-project-templates")
.header("X-Domino-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"access\": {\n \"collaborators\": [\n {\n \"id\": \"<string>\",\n \"role\": \"template_user\"\n }\n ]\n },\n \"definition\": {\n \"settings\": {\n \"defaultEnvironmentRevision\": {\n \"environmentId\": \"<string>\",\n \"id\": \"<string>\"\n },\n \"defaultHardwareTier\": {\n \"id\": \"<string>\",\n \"name\": \"<string>\"\n }\n }\n },\n \"name\": \"<string>\",\n \"sourceProject\": {\n \"gitProviderCodeSpec\": {\n \"credentialId\": \"<string>\",\n \"repoName\": \"<string>\",\n \"repoOwnerName\": \"<string>\"\n },\n \"id\": \"<string>\",\n \"included\": []\n },\n \"description\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mycluster.domino.tech/api/develop/v1/customer-project-templates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Domino-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"access\": {\n \"collaborators\": [\n {\n \"id\": \"<string>\",\n \"role\": \"template_user\"\n }\n ]\n },\n \"definition\": {\n \"settings\": {\n \"defaultEnvironmentRevision\": {\n \"environmentId\": \"<string>\",\n \"id\": \"<string>\"\n },\n \"defaultHardwareTier\": {\n \"id\": \"<string>\",\n \"name\": \"<string>\"\n }\n }\n },\n \"name\": \"<string>\",\n \"sourceProject\": {\n \"gitProviderCodeSpec\": {\n \"credentialId\": \"<string>\",\n \"repoName\": \"<string>\",\n \"repoOwnerName\": \"<string>\"\n },\n \"id\": \"<string>\",\n \"included\": []\n },\n \"description\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"access": {
"collaborators": [
{
"id": "<string>",
"role": "template_user"
}
],
"visibility": "private"
},
"categories": [
"<string>"
],
"created": "2023-11-07T05:31:56Z",
"id": "<string>",
"isCompanyOfficial": true,
"name": "<string>",
"owner": {
"name": "<string>",
"link": "<string>"
},
"templateType": "customer",
"updated": "2023-11-07T05:31:56Z",
"definition": {
"backingProject": {
"id": "<string>",
"name": "<string>",
"owner": {
"username": "<string>"
}
},
"projectType": "git_based",
"settings": {
"defaultEnvironmentRevision": {
"environment": {
"id": "<string>",
"name": "<string>"
},
"id": "<string>"
},
"defaultHardwareTier": {
"id": "<string>",
"name": "<string>"
},
"computeClusterEnvironmentRevision": {
"environment": {
"id": "<string>",
"name": "<string>"
},
"id": "<string>"
}
}
},
"isArchived": true,
"sourceProject": {
"id": "<string>",
"included": [
"Artifacts"
],
"name": "<string>",
"owner": {
"username": "<string>"
}
},
"base64Logo": "<string>",
"description": "<string>",
"license": "<string>",
"recommended": true,
"revisionId": "<string>",
"taxonomyTags": [
{
"id": "<string>",
"label": "<string>",
"namespaceId": "<string>",
"description": "<string>",
"fullPath": [
"<string>"
],
"namespaceLabel": "<string>"
}
]
}{
"error": "<string>"
}{
"code": "UNAUTHORIZED",
"message": "Authentication is required to access this resource."
}{
"code": "FORBIDDEN",
"message": "You do not have permission to perform this action."
}{
"error": "<string>"
}{
"error": "<string>"
}