translations.events.update

Resource information

URLhttps://api.statscore.com/v2/translations/events
MethodPUT

Description

Add/update event participants name translation by provider ID.
Authorization requiredYes

Parameters

NameData typeDescription
tokenxsd:stringREQUIRED. More information concerning authorization in API introduction section

POST parameters

NameData typeDescription
lang_codexsd:stringREQUIRED. Language code, e.g "zh-CN" - case sensitive
provider_idxsd:int

REQUIRED. The identifier of provider for given identifiers (event_id, participant.id)

At this moment only: 74

event_idxsd:intREQUIRED. The identifier for event
.participants

idxsd:intREQUIRED. The identifier of participant
namexsd:stringREQUIRED. The value of translated name (short_name)
positionxsd:intREQUIRED. The value of position, e.g 1 (for home participant), 2...


Output elements

If fail: 

.data

messageResponse info message.
statusResponse code.

If success: 

.data

messageSuccessfully translated participant(s)
not_translatedList of participants that was not found

Sample curl call

Request
 Parameters
curl --location --request PUT 'https://api.statscore.com/v2/translations/events?token={token}' \
--header 'Content-Type: application/json' \
--data '{ "lang_code": "zh-CN", "provider_id": 74, "event_id": 55555, "participants":[ { "id": 11111, "name": "Part 1 translate", "position": 1 }, { "id": 22222, "name": "Part 2 translate", "position": 2 } ] }'
token