Create date math

post
Create date math

https://api.rightsline.com/v3/date-math
This endpoint allows you to create a new date math object.
Request
Response
Request
Headers
x-api-key
required
string
Your company's API key.
Authentication
required
string
Authentication token.
Body Parameters
childTagLabel
required
string
The date characteristic to assign the date math.
childEntityTypeId
required
integer
The entity type of the record to assign the date math.
childId
required
integer
The ID of the record to assign the date math.
parentCalcs
required
array
The parent entities on which the date math calculation is based.
Response
200: OK
Date math successfully created. Returns the ID of the date math object.
1549444450

Example

{
"type":"PRIORITYOF",
"childEntityTypeId":4,
"childId":618,
"childTagLabel":"contract_term_end",
"recalcOption":"OPEN",
"parentCalcs":[
{
"entityTypeId":4,
"id":618,
"tagLabel": "contract_date",
"quantity": 15,
"frequency": "DAYS",
"isPriorTo": true,
"sortOrder": 0
},
{
"entityTypeId":4,
"id":618,
"tagLabel": "contract_term_start",
"quantity": 15,
"frequency": "DAYS",
"isPriorTo": false,
"sortOrder": 1
}
]
}