Create and update Keywords XML format
The endpoint should be the following:
-
method: POST
-
path: /common/keywords/persist
Request
-
The request should be in OMN XML format;
Usecase |
Request body |
Create a root Keyword |
|
Create a sub Keyword |
|
Update a Keyword |
|
Response
-
It should be in OMN XML format;
-
It should contain "responses" tag. You can check it here: OMN XML: General.
Usecase |
Response body |
Success creation in parent |
|
Success creation in root |
|
Success update |
|
Error: no keyword by id |
|
Error: no keyword by path |
|
Error: keyword is not available for update |
|
Error: parent keyword is not available |
|
Error: value is duplicated on the same level |
|
HTTP response codes
200 - Persist successful
401 - Not authorized
404 - Not found
400 - Invalid input
500 - Internal server error