PUT
/_ml/trained_models/{model_id}/vocabulary
curl \
--request PUT 'http://api.example.com/_ml/trained_models/{model_id}/vocabulary' \
--header "Content-Type: application/json" \
--data '"{\n \"vocabulary\": [\n \"[PAD]\",\n \"[unused0]\",\n ]\n}"'
Request example
An example body for a `PUT _ml/trained_models/elastic__distilbert-base-uncased-finetuned-conll03-english/vocabulary` request.
{
"vocabulary": [
"[PAD]",
"[unused0]",
]
}