Language pairs

Language pairs represent language pairs associated with a supplier. They are used to store the language pairs the supplier can work with.

The Language pair object

Properties

  • languagePair.bidirectionalboolean

    True if the language pair is bidirectional.

  • languagePair.idstring

    The id of the language pair.

  • languagePair.sourceobject

    The source language of the language pair.
  • languagePair.targetobject

    The target language of the language pair.

LanguagePair object

{
  "id": "6548c16d5136b418fd626e5d",
  "bidirectional": false,
  "source": {
    "name": "French",
    "code": "fr"
  },
  "target": {
    "name": "Dutch",
    "code": "nl"
  }
}

POST/v2/suppliers/:id/language-pairs/:languagePairId

Add a language pair

This endpoint allows you to add a language pair.

Parameters

    Request

    POST
    /v2/suppliers/:id/language-pairs/:languagePairId
    curl https://api.lsp.expert/v2/suppliers/6548c72a13162e1d7ade0290/language-pairs/6654468b366ad245719322f4 \
      -u {key}:
    

    Response

    {
      "id": "6548c72a13162e1d7ade0290",
      "name": "John Smith",
      "address": {
        "name": "John Smith"
      },
      "archived": false,
      "languagePairs": [{
        "id": "6548c16d5136b418fd626e5d",
        "bidirectional": false,
        "source": {
          "name": "French",
          "code": "fr"
        },
        "target": {
          "name": "Dutch",
          "code": "nl"
        }]
      // ...
    }
    
    

    DELETE/v2/suppliers/:id/language-pairs/:languagePairId

    Delete a language pair

    This endpoint allows you to delete a language pair.

    Request

    DELETE
    /v2/suppliers/:id/language-pairs/:languagePairId
    curl -X DELETE https://api.lsp.expert/v2/suppliers/66f1313f9e477f90664d1ad8/language-pairs/6654468b366ad245719322f4 \
      -u {key}:
    

    Response

    {
      "id": "6548c72a13162e1d7ade0290",
      "name": "John Smith",
      "address": {
        "name": "John Smith"
      },
      "archived": false,
      "languagePairs": []
      // ...
    }