You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Codes of Conduct API is currently available for developers to preview.
6278
-
6279
-
To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/[email protected]/rest/overview/media-types) in the `Accept` header:
6280
-
```shell
6281
-
application/vnd.github.scarlet-witch-preview+json
6282
-
```
6283
6270
category: codes-of-conduct
6284
6271
subcategory:
6285
6272
"/codes_of_conduct/{key}":
@@ -6370,22 +6357,9 @@ paths:
6370
6357
content: *25
6371
6358
'304':
6372
6359
description: Not modified
6373
-
'415':
6374
-
description: Preview header missing
6375
-
content: *30
6376
6360
x-github:
6377
6361
githubCloudOnly: false
6378
6362
enabledForGitHubApps: true
6379
-
previews:
6380
-
- required: true
6381
-
name: scarlet-witch
6382
-
note: |-
6383
-
The Codes of Conduct API is currently available for developers to preview.
6384
-
6385
-
To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/[email protected]/rest/overview/media-types) in the `Accept` header:
6386
-
```shell
6387
-
application/vnd.github.scarlet-witch-preview+json
6388
-
```
6389
6363
category: codes-of-conduct
6390
6364
subcategory:
6391
6365
"/emojis":
@@ -17574,26 +17548,6 @@ paths:
17574
17548
- key
17575
17549
- name
17576
17550
- html_url
17577
-
security_and_analysis:
17578
-
nullable: true
17579
-
type: object
17580
-
properties:
17581
-
advanced_security:
17582
-
type: object
17583
-
properties:
17584
-
status:
17585
-
type: string
17586
-
enum:
17587
-
- enabled
17588
-
- disabled
17589
-
secret_scanning:
17590
-
type: object
17591
-
properties:
17592
-
status:
17593
-
type: string
17594
-
enum:
17595
-
- enabled
17596
-
- disabled
17597
17551
required: &153
17598
17552
- archive_url
17599
17553
- assignees_url
@@ -51709,10 +51663,10 @@ paths:
51709
51663
subcategory: management-console
51710
51664
post:
51711
51665
summary: Enable or disable maintenance mode
51712
-
description: |-
51713
-
The possible values for `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.
51714
-
51715
-
The possible values for `when` are `now` or any date parseable by [mojombo/chronic](https://github.com/mojombo/chronic).
51666
+
description: "**Note:** The request body for this operation must be submitted
51667
+
as `application/x-www-form-urlencoded` data. You can submit a parameter value
51668
+
as a string, or you can use a tool such as `curl` to submit a parameter value
51669
+
as the contents of a text file. For more information, see the [`curl` documentation](https://curl.se/docs/manpage.html#--data-urlencode)."
description: A JSON string with the attributes `enabled` and `when`.
51695
+
description: |-
51696
+
A JSON string with the attributes `enabled` and `when`.
51697
+
51698
+
The possible values for `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.
51699
+
51700
+
The possible values for `when` are `now` or any date parseable by [mojombo/chronic](https://github.com/mojombo/chronic).
51742
51701
required:
51743
51702
- maintenance
51703
+
example:
51704
+
maintenance: '{"enabled":true, "when":"now"}'
51744
51705
x-github:
51745
51706
githubCloudOnly: false
51746
51707
enabledForGitHubApps: false
@@ -52192,7 +52153,10 @@ paths:
52192
52153
subcategory: management-console
52193
52154
put:
52194
52155
summary: Set settings
52195
-
description: For a list of the available settings, see the [Get settings endpoint](https://docs.github.com/[email protected]/rest/reference/enterprise-admin#get-settings).
52156
+
description: |-
52157
+
For a list of the available settings, see the [Get settings endpoint](https://docs.github.com/[email protected]/rest/reference/enterprise-admin#get-settings).
52158
+
52159
+
**Note:** The request body for this operation must be submitted as `application/x-www-form-urlencoded` data. You can submit a parameter value as a string, or you can use a tool such as `curl` to submit a parameter value as the contents of a text file. For more information, see the [`curl` documentation](https://curl.se/docs/manpage.html#--data-urlencode).
52196
52160
operationId: enterprise-admin/set-settings
52197
52161
tags:
52198
52162
- enterprise-admin
@@ -52204,16 +52168,19 @@ paths:
52204
52168
description: Response
52205
52169
requestBody:
52206
52170
content:
52207
-
application/json:
52171
+
application/x-www-form-urlencoded:
52208
52172
schema:
52209
52173
type: object
52210
52174
properties:
52211
52175
settings:
52212
52176
type: string
52213
52177
description: A JSON string with the new settings. Note that you
52214
-
only need to pass the specific settings you want to modify.
52178
+
only need to pass the specific settings you want to modify. For
52179
+
a list of the available settings, see the [Get settings endpoint](https://docs.github.com/[email protected]/rest/reference/enterprise-admin#get-settings).
When you boot a GitHub instance for the first time, you can use the following endpoint to upload a license:
52319
+
When you boot a GitHub instance for the first time, you can use the following endpoint to upload a license.
52343
52320
52344
-
Note that you need to POST to [`/setup/api/configure`](https://docs.github.com/[email protected]/rest/reference/enterprise-admin#start-a-configuration-process) to start the actual configuration process.
52321
+
Note that you need to `POST` to [`/setup/api/configure`](https://docs.github.com/[email protected]/rest/reference/enterprise-admin#start-a-configuration-process) to start the actual configuration process.
52345
52322
52346
52323
When using this endpoint, your GitHub instance must have a password set. This can be accomplished two ways:
52347
52324
52348
52325
1. If you're working directly with the API before accessing the web interface, you must pass in the password parameter to set your password.
52349
52326
2. If you set up your instance via the web interface before accessing the API, your calls to this endpoint do not need the password parameter.
52350
52327
52351
-
For a list of the available settings, see the [Get settings endpoint](https://docs.github.com/[email protected]/rest/reference/enterprise-admin#get-settings).
52328
+
**Note:** The request body for this operation must be submitted as `application/x-www-form-urlencoded` data. You can submit a parameter value as a string, or you can use a tool such as `curl` to submit a parameter value as the contents of a text file. For more information, see the [`curl` documentation](https://curl.se/docs/manpage.html#--data-urlencode).
description: 'This API upgrades your license and also triggers the configuration
52391
-
process:'
52368
+
description: |-
52369
+
This API upgrades your license and also triggers the configuration process.
52370
+
52371
+
**Note:** The request body for this operation must be submitted as `application/x-www-form-urlencoded` data. You can submit a parameter value as a string, or you can use a tool such as `curl` to submit a parameter value as the contents of a text file. For more information, see the [`curl` documentation](https://curl.se/docs/manpage.html#--data-urlencode).
0 commit comments