Object templates
Path parameters
projectIdstringRequired
The id of the project the object template is in
templateIdstringRequired
The id of the object template to retrieve
Responses
200
Expected response to a valid request
application/json
default
An error occurred
application/json
get
GET /v1/mml-objects/{projectId}/object-templates/{templateId} HTTP/1.1
Host: localhost:3050
Accept: */*
{
"id": "text",
"name": "text",
"description": "text",
"defaultTemplateVersionId": "text",
"createdAt": "text",
"createdBy": {
"userId": "text",
"type": "user"
}
}
Path parameters
projectIdstringRequired
The id of the project the object template is in
templateIdstringRequired
The id of the object template to edit
Body
namestringOptional
descriptionstringOptional
defaultTemplateVersionIdstringOptional
Responses
200
Expected response to a valid request
application/json
default
An error occurred
application/json
post
POST /v1/mml-objects/{projectId}/object-templates/{templateId} HTTP/1.1
Host: localhost:3050
Content-Type: application/json
Accept: */*
Content-Length: 70
{
"name": "text",
"description": "text",
"defaultTemplateVersionId": "text"
}
{
"id": "text",
"name": "text",
"description": "text",
"defaultTemplateVersionId": "text",
"createdAt": "text",
"createdBy": {
"userId": "text",
"type": "user"
}
}
Was this helpful?