/

List all mml object templates

get
Path parameters
projectIdstringRequired

The id of the project the template is in

Query parameters
offsetinteger · int32Optional

The offset into queried items to return

limitinteger · int32 · max: 100Optional

How many items to return at one time (max 100)

Responses
200

A paged array of MML object templates

application/json
get
GET /v1/mml-objects/{projectId}/object-templates/ HTTP/1.1
Host: localhost:3050
Accept: */*
{
  "templates": [
    {
      "id": "text",
      "name": "text",
      "description": "text",
      "defaultTemplateVersionId": "text",
      "createdAt": "text",
      "createdBy": {
        "userId": "text",
        "type": "user"
      }
    }
  ],
  "totalResults": 1,
  "offset": 1,
  "limit": 1
}

Create an object template

post
Path parameters
projectIdstringRequired

The id of the project the template is in

Body
namestringRequired
descriptionstringOptional
Responses
200

Expected response to a valid request

application/json
post
POST /v1/mml-objects/{projectId}/object-templates/ HTTP/1.1
Host: localhost:3050
Content-Type: application/json
Accept: */*
Content-Length: 36

{
  "name": "text",
  "description": "text"
}
{
  "id": "text",
  "name": "text",
  "description": "text",
  "defaultTemplateVersionId": "text",
  "createdAt": "text",
  "createdBy": {
    "userId": "text",
    "type": "user"
  }
}

Was this helpful?