API does not mention requirement for videoQuotaDaily #1325

Open
opened 2026-02-22 05:30:31 -05:00 by deekerman · 0 comments
Owner

Originally created by @popindavibe on GitHub (Feb 7, 2019).

What happened?
My script for adding users started failing, after investigation it is because a new parameter, videoQuotaDaily became mandatory.

cf: https://docs.joinpeertube.org/api.html?version=v1.1.0#tag/User/paths/~1users/post

What do you expect to happen instead?
If it's mandatory, it should be mentioned in API documentation

Steps to reproduce:

  1. Get a token and submit user creation without videoQuotaDaily

  2. Result is

2019-02-07 17:41:02.394 warn: Incorrect request parameters {
  "meta": {                                                                           
    "path": "/api/v1/users",                                                          
    "err": {                                                                          
      "videoQuotaDaily": {                                                            
        "location": "body",                                                           
        "param": "videoQuotaDaily",                                                   
        "msg": "Should have a valid daily user quota"                                 
      }                                                                               
    }                                                                                 
  },                                                                                  
  "err": {                                                                            
    "videoQuotaDaily": {                                                              
      "location": "body",                                                             
      "param": "videoQuotaDaily",                                                     
      "msg": "Should have a valid daily user quota"                                   
    }                                                                                 
  }                                                                                   
}                                                                                     

Additional information

  • PeerTube version or URL: latest / 1.1.0

  • Browser name/version: N/A

  • NodeJS version: N/A

  • Link to browser console log if useful: N/A

  • Link to server log if useful (journalctl or /var/www/peertube/storage/logs/):

Originally created by @popindavibe on GitHub (Feb 7, 2019). <!-- If you have a question, please read the FAQ.md first --> <!-- If you report a security issue, please refrain from filling an issue and refer to SECURITY.md for the disclosure procedure. --> <!-- If you report a bug, please fill the form --> **What happened?** My script for adding users started failing, after investigation it is because a new parameter, `videoQuotaDaily` became mandatory. cf: https://docs.joinpeertube.org/api.html?version=v1.1.0#tag/User/paths/~1users/post **What do you expect to happen instead?** If it's mandatory, it should be mentioned in API documentation **Steps to reproduce:** 1. Get a token and submit user creation without videoQuotaDaily 2. Result is ``` 2019-02-07 17:41:02.394 warn: Incorrect request parameters { "meta": { "path": "/api/v1/users", "err": { "videoQuotaDaily": { "location": "body", "param": "videoQuotaDaily", "msg": "Should have a valid daily user quota" } } }, "err": { "videoQuotaDaily": { "location": "body", "param": "videoQuotaDaily", "msg": "Should have a valid daily user quota" } } } ``` **Additional information** * PeerTube version or URL: latest / 1.1.0 * Browser name/version: N/A * NodeJS version: N/A * Link to browser console log if useful: N/A * Link to server log if useful (journalctl or /var/www/peertube/storage/logs/):
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/PeerTube#1325
No description provided.