curl --request POST \
--url https://demo.komga.org/api/v2/users \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"password": "<string>",
"roles": [
"<string>"
],
"labelsAllow": [
"<string>"
],
"labelsExclude": [
"<string>"
]
}
'{
"email": "<string>",
"id": "<string>",
"labelsAllow": [
"<string>"
],
"labelsExclude": [
"<string>"
],
"roles": [
"<string>"
],
"sharedAllLibraries": true,
"sharedLibrariesIds": [
"<string>"
],
"ageRestriction": {
"age": 123,
"restriction": "ALLOW_ONLY"
}
}Required role: ADMIN
curl --request POST \
--url https://demo.komga.org/api/v2/users \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"password": "<string>",
"roles": [
"<string>"
],
"labelsAllow": [
"<string>"
],
"labelsExclude": [
"<string>"
]
}
'{
"email": "<string>",
"id": "<string>",
"labelsAllow": [
"<string>"
],
"labelsExclude": [
"<string>"
],
"roles": [
"<string>"
],
"sharedAllLibraries": true,
"sharedLibrariesIds": [
"<string>"
],
"ageRestriction": {
"age": 123,
"restriction": "ALLOW_ONLY"
}
}Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.