Save a template draft
/v1/templates/{id}/draftReplaces the template's draft blocks, validated exactly as the dashboard builder validates them. The published version. and every waiver signed under it. is untouched until you publish.
Authentication
Send an organization-scoped API key in the Authorization header. Keep credentials on your server.
templates:manageParameters
pathrequiredstring · uuidRequest body
Use application/json. Replace example identifiers and values with data from your organization.
arrayrequiredResponses
200 Response schema
application/json
string · uuidrequiredintegerrequiredRange: -9007199254740991 to 9007199254740991.
View complete response schema
{
"type": "object",
"properties": {
"versionId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
},
"versionNumber": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"versionId",
"versionNumber"
],
"additionalProperties": false
}401 Response schema
application/json
objectrequiredView nested fields
stringrequiredstringrequiredstringrequiredvalueView complete response schema
{
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string"
},
"details": {}
},
"required": [
"code",
"message",
"requestId"
],
"additionalProperties": false
}
},
"required": [
"error"
],
"additionalProperties": false
}403 Response schema
application/json
objectrequiredView nested fields
stringrequiredstringrequiredstringrequiredvalueView complete response schema
{
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string"
},
"details": {}
},
"required": [
"code",
"message",
"requestId"
],
"additionalProperties": false
}
},
"required": [
"error"
],
"additionalProperties": false
}404 Response schema
application/json
objectrequiredView nested fields
stringrequiredstringrequiredstringrequiredvalueView complete response schema
{
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string"
},
"details": {}
},
"required": [
"code",
"message",
"requestId"
],
"additionalProperties": false
}
},
"required": [
"error"
],
"additionalProperties": false
}422 Response schema
application/json
objectrequiredView nested fields
stringrequiredstringrequiredstringrequiredvalueView complete response schema
{
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string"
},
"details": {}
},
"required": [
"code",
"message",
"requestId"
],
"additionalProperties": false
}
},
"required": [
"error"
],
"additionalProperties": false
}429 Response schema
application/json
objectrequiredView nested fields
stringrequiredstringrequiredstringrequiredvalueView complete response schema
{
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string"
},
"details": {}
},
"required": [
"code",
"message",
"requestId"
],
"additionalProperties": false
}
},
"required": [
"error"
],
"additionalProperties": false
}Authentication and validation failures use the shared error envelope. Save the request ID when diagnosing a failed call.
Build the surrounding workflow
Read the templates guide for ordering, verification and recovery. Browse the other templates endpoints when you need the next operation.