For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Object templates

Info for a specific object template

get
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
idstringRequired
namestringRequired
descriptionstringOptional
defaultTemplateVersionIdstringOptional
createdAtstringRequired
createdByone ofRequired
or
get/v1/mml-objects/{projectId}/object-templates/{templateId}
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"
  }
}

Edit a template

post
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
idstringRequired
namestringRequired
descriptionstringOptional
defaultTemplateVersionIdstringOptional
createdAtstringRequired
createdByone ofRequired
or
post/v1/mml-objects/{projectId}/object-templates/{templateId}
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?