Table of Contents |
---|
Create new term | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Request | POST /editor/term | |||||||||
Params | collectionId Required. ID of TermCollection that new term should be created in See filterWindow.collections in Client app setup data response | |||||||||
language Required. Rfc5646-code of a new term's language. See langAll[*].value in Client app setup data response | ||||||||||
term Required. Term text itself. String. | ||||||||||
note Required if runtimeOptions.termportal.commentAttributeMandatory config is On. String. | ||||||||||
termEntryId Optional. ID of termEntry, which new term should be attached under. If not given - new termEntry will be created. | ||||||||||
|
Create proposal for existing term | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Request | PUT /editor/term | |||||||||
Params | termId Required. ID of existing term, for proposal to be created for | |||||||||
proposal Optional. If not given, the existing proposal will be deleted, so existing term will be kept with no proposal | ||||||||||
|
Delete term | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Request | DELETE /editor/term | |||||||||
Params | termId Required. ID of term to be deleted | |||||||||
Response contains isLast-property, indicating whether deleted term was the last having it's language, or last for the whole termEntry
|