Reports

Add Report Settings Template

Required scopes: project.report (Read and Write).

post/projects/{projectId}/reports/settings-templates

Request

Path parameters

projectIdinteger required

Project Identifier. Get via List Projects

Request body

OR

Example request

{
  "name": "Default template",
  "currency": "USD",
  "unit": "words",
  "config": {
    "baseRates": {
      "fullTranslation": 0.1,
      "proofread": 0.12
    },
    "individualRates": [
      {
        "languageIds": [
          "uk"
        ],
        "userIds": [
          1
        ],
        "fullTranslation": 0.1,
        "proofread": 0.12
      }
    ],
    "netRateSchemes": {
      "tmMatch": [
        {
          "matchType": "100-82",
          "price": 0.1
        }
      ],
      "mtMatch": [
        {
          "matchType": "100",
          "price": 0.1
        }
      ],
      "aiMatch": [
        {
          "matchType": "100-93",
          "price": 0.1
        }
      ],
      "suggestionMatch": [
        {
          "matchType": "100",
          "price": 0.1
        }
      ]
    }
  },
  "isPublic": true,
  "isGlobal": true
}

Response

Report Settings Template was successfully created

Example response

{
  "data": {
    "id": 1,
    "name": "Default template",
    "currency": "USD",
    "unit": "words",
    "config": {
      "baseRates": {
        "fullTranslation": 0.1,
        "proofread": 0.12
      },
      "individualRates": [
        {
          "languageIds": [
            "uk"
          ],
          "userIds": [
            1
          ],
          "fullTranslation": 0.1,
          "proofread": 0.12
        }
      ],
      "netRateSchemes": {
        "tmMatch": [
          {
            "matchType": "100",
            "price": 0.1
          }
        ],
        "mtMatch": [
          {
            "matchType": "100-82",
            "price": 0.1
          }
        ],
        "aiMatch": [
          {
            "matchType": "100-74",
            "price": 0.1
          }
        ],
        "suggestionMatch": [
          {
            "matchType": "perfect",
            "price": 0.1
          }
        ]
      }
    },
    "createdAt": "2019-09-23T11:26:54+00:00",
    "updatedAt": "2019-09-23T11:26:54+00:00",
    "isPublic": true,
    "isGlobal": true
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.