Skip to content

Set service credentials

PUT
/api/credentials/{service}

Set or update credentials for a service. Passwords for opds/kosync are bcrypt-hashed. Hardcover tokens are sealed with reversible encryption.

Parameters

Path Parameters

service*
Type
string
Required
Valid values
"opds""kosync""hardcover""google_books"

Request Body

application/json
JSON
{
  
"username": "string",
  
"password": "string"
}

Responses

Credentials updated

application/json
JSON
{
  
"service": "string",
  
"username": "string",
  
"updated": true
}

Samples