API reference
HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
PUT
/contracts/{id}/exercise_eligibleOtherMark Contract as Exercise Eligible
https://fintech.staging.htsapis.com/flights-dafar/v2/contracts/{id}/exercise_eligible
Mark a contract as eligible for exercise, bypassing standard eligibility checks.
Parameters
idpath · string
required
A unique identifier for a contract.
Request body application/json · required
reasoneligible_reason · one of 2
required
The reason for which the contract is being marked as exercise eligible.
Show fields
The reason for which the contract is being marked as exercise eligible.
Exactly one of the following, selected by
type:other (other3) other3
typestring
required
value: other
descriptionstring
required
Length ≥ 1
reported_disruption (reported_disruption) reported_disruption
typestring
required
value: reported_disruption
Responses
204
No body.
400Syntactic errors were encountered while handling the request
Array of error
messagestring
required
codestring
required
Example
[
{
"message": "string",
"code": "string"
}
]401The client could not be authenticated
No body.
403The authenticated client does not have permission to call this endpoint
No body.
404The requested resource could not be found
No body.
422Semantic errors were encountered while handling the request
Array of contract_exercise_eligible_error · one of 1
Items ≥ 1
Exactly one of the following, selected by
code:invalid_contract_status (invalid_contract_status4) invalid_contract_status4
messagestring
required
A human-readable message describing the error
codestring
required
Example
[
{
"message": "string",
"code": "string"
}
]499The client cancelled the request
No body.
500The server encountered an internal error
No body.
Request
curl -X PUT "https://fintech.staging.htsapis.com/flights-dafar/v2/contracts/<id>/exercise_eligible" \
-H "X-Api-Key: $HTS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"reason": {
"type": "string",
"description": "string"
}
}'Examples are generated from the schema where the spec publishes none; field values are illustrative.
