1
0
mirror of https://github.com/mastodon/documentation synced 2025-04-11 22:56:17 +02:00

Add documentation for age verification (#1613)

This commit is contained in:
Eugen Rochko 2025-03-17 17:55:51 +01:00 committed by GitHub
parent 6295bb34f9
commit 8fdb111109
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 17 additions and 5 deletions

View File

@ -121,7 +121,8 @@ aliases: [
"registrations": { "registrations": {
"enabled": false, "enabled": false,
"approval_required": false, "approval_required": false,
"message": null "message": null,
"min_age": 16
}, },
"api_versions": { "api_versions": {
"mastodon": 1, "mastodon": 1,
@ -511,6 +512,13 @@ aliases: [
**Version history:**\ **Version history:**\
4.0.0 - added 4.0.0 - added
#### `registrations[min_age]` {#registrations-min_age}
**Description:** A minimum age required to register, if configured.\
**Type:** {{<nullable>}} Integer or null\
**Version history:**\
4.4.0 - added
### `api_versions` {#api-versions} ### `api_versions` {#api-versions}
**Description:** Information about which version of the API is implemented by this server. It contains at least a `mastodon` attribute, and other implementations may have their own additional attributes.\ **Description:** Information about which version of the API is implemented by this server. It contains at least a `mastodon` attribute, and other implementations may have their own additional attributes.\

View File

@ -32,7 +32,8 @@ A relationship between the OAuth Application and created user account is stored.
**Version history:**\ **Version history:**\
2.7.0 - added\ 2.7.0 - added\
3.0.0 - added `reason` parameter\ 3.0.0 - added `reason` parameter\
3.4.0 - added `details` to failure response 3.4.0 - added `details` to failure response\
4.4.0 - added `date_of_birth` parameter
#### Request #### Request
@ -61,6 +62,9 @@ locale
reason reason
: String. If registrations require manual approval, this text will be reviewed by moderators. : String. If registrations require manual approval, this text will be reviewed by moderators.
date_of_birth
: String ([Date](/api/datetime-format#date)), required if the server has a minimum age requirement.
#### Response #### Response
##### 200: OK ##### 200: OK