Reports

Add User Report Settings Template

Required scopes: user (Read and Write).

post/users/{userId}/reports/settings-templates

Request

Path parameters

userIdinteger required

User Identifier. Get via Get Authenticated User

Request body

OR

Example request

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

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": [],
          "fullTranslation": 0.1,
          "proofread": 0.12
        }
      ],
      "netRateSchemes": {
        "tmMatch": [
          {
            "matchType": "100-82",
            "price": 0.1
          }
        ],
        "mtMatch": [
          {
            "matchType": "100",
            "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"
  }
}

Changes

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