Project Template API v2

From Memsource
Jump to: navigation, search

Create

action: api/v2/projectTemplate/create
    token                       string
    project                     domain(Project)
    name                        string

response: JSON
    {
      "id": 145                 // id of the new template
    }

List

action: api/v2/projectTemplate/list
    token                       string
    page                        integer           O(0)

response: JSON
    [
      {
        "targetLangs":[
          "cs",
          "de"
        ],
        "client":null,
        "sourceLang":"en",
        "subDomain":null,
        "workflowSteps":[
    
        ],
        "id":1,
        "createdBy":{
          "id":1,
          "lastName":"test",
          "email":"test@test.com",
          "userName":"admin",
          "role":"ADMIN",
          "active":true,
          "firstName":"admin"
        },
        "name":"project",
        "owner":null,
        "domain":null,
        "dateCreated":"2014-09-22T08:05:25+0000",
        "note":null,
        "templateName":"template1"
      }
    ]

Delete Project Template

action: api/v2/projectTemplate/delete
    token                       string
    template                    domain(ProjectTemplate)
    purge                       boolean

response: empty