Update C
PATCH/v1/armada/datacenter_contract/:c_id
Update a contract
Request
Path Parameters
The contract ID
- application/json
Body
required
Datetime that enforces that a timezone is given. Unix timestamps are allowed and forced into the UTC time zone
Datetime that enforces that a timezone is given. Unix timestamps are allowed and forced into the UTC time zone
Datetime that enforces that a timezone is given. Unix timestamps are allowed and forced into the UTC time zone
The number of days in the contract period
The service extend period in days
The number of days notice required to cancel the contract
Possible values: non-empty
The purchase order number or description for the contract
The number of days after the invoice is sent that payment is due
The IDs of the hosts this contract is associated with
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
Datetime that enforces that a timezone is given. Unix timestamps are allowed and forced into the UTC time zone
Datetime that enforces that a timezone is given. Unix timestamps are allowed and forced into the UTC time zone
Datetime that enforces that a timezone is given. Unix timestamps are allowed and forced into the UTC time zone
The number of days in the contract period
The service extend period in days
The number of days notice required to cancel the contract
Possible values: non-empty
The purchase order number or description for the contract
The number of days after the invoice is sent that payment is due
The IDs of the hosts this contract is associated with
{
"start_date": "2024-07-29T15:51:28.071Z",
"end_date": "2024-07-29T15:51:28.071Z",
"cancel_date": "2024-07-29T15:51:28.071Z",
"period_days": 0,
"extend_period_days": 0,
"notice_days": 0,
"purchase_order": "string",
"payment_term_days": 0,
"hosts": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"datacenter_contract_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}