Normalization
Normalize Duration
Changed onCreates a new duration normalize request for a string, returning a request ID and the normalized duration. Normalize durations found within a string, returning an array of duration values and their units.
post/normalize/duration
Request
- Base URLhttps://us.app.zuva.ai/api/v2
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
See response body for status of request.
Example response
{
"request_id": "c5e407f1qk1er7odm6tg",
"text": "The contract expires 4 months after termination",
"sha-256": "97d7dfd38b649cd6109d0be3f757d65f485d483cce6235294938ca02cd99ed18",
"duration": [
{
"unit": "months",
"value": 4
}
]
}Changes
- info
endpoint added
- info