enabled
are true
and false
. When it's false
, the attribute when
is ignored and the maintenance mode is turned off. when
defines the time period when the maintenance was enabled.when
are now
or any date parseable by mojombo/chronic.curl --location --request POST 'https://api.github.com/setup/api/maintenance' \
--header 'Content-Type: application/json' \
--data-raw '{
"maintenance": "string"
}'
{
"connection_services": [
{
"name": "string",
"number": 0
}
],
"scheduled_time": "string",
"status": "string"
}
Authorization: Bearer ********************
enabled
and when
.【GitHub】API开发者 微信交流群
用微信扫右侧二维码,加入【GitHub】API开发者 交流群,互助沟通