Matches

A match represents a part of the quantity of words that can be translated. Each match can be priced differently.

The match object

Properties

  • idstring

    Unique identifier for the object.

  • namestring

    The name of the match.

  • disabledboolean

    True if the match is disabled.

match object

{ 
  "id": "655c61aa0ecf6202a9edb710" ,
  "disabled": false, 
  "name": "0%",
  }

GET/v2/account/matches

List all matches

This endpoint allows you to retrieve all the matches.

Request

GET
/v2/account/matches
curl -G https://api.lsp.expert/v2/account/matches \
  -u {key}: 

Response

[
  { 
    "id": "655c61aa0ecf6202a9edb710",
    "disabled": false, 
    "name": "0%"
  },
  { 
    "id": "655c61a70ecf6202a9edb70e",
    "disabled": false, 
    "name": "100%"
  },
  { 
    "id": "655c61af0ecf6202a9edb712",
    "disabled": false, 
    "name": "Fuzzies"
  }
  // ...
]


POST/v2/account/matches

Create a match

This endpoint allows you to add a new match.

Parameters

  • namestring Required

    The name of the match.

Request

POST
/v2/account/matches
curl https://api.lsp.expert/v2/account/matches \
  -u {key}: \
  -d name="100%" 

Response

{
  "id": "66e7f69da9d8b6741f4a441d",
  "name": "100%"
}


PUT/v2/account/matches/:id

Update a match

This endpoint allows you to perform an update on a match. Any parameters not provided will be left unchanged.

Parameters

  • namestring

    The name of the match.

  • disabledboolean

    True if the match is disabled.

Request

PUT
/v2/account/matches/:id
curl -X PUT https://api.lsp.expert/v2/account/matches/66e7f69da9d8b6741f4a441d \
  -u {key}: \
  -d name="full"

Response

{
  "id": "66e7f69da9d8b6741f4a441d",
  "name": "full"
}

DELETE/v2/account/matches/:id

Delete a match

This endpoint allows you to delete a match.

Request

DELETE
/v2/account/matches/66e7f69da9d8b6741f4a441d
curl -X DELETE https://api.lsp.expert/v2/account/matches/66e7f69da9d8b6741f4a441d \
  -u {key}: