组织管理

更新组织信息(需要管理员权限)

put/organizations/{id}

Request

  • Base URL
    /api/v1 (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/v1/organizations/{id}
  • Auth
    API key in header Authorization

Path parameters

idstring required

组织ID

Request body

avatarstring

optional avatar URL

descriptionstring
invite_code_validity_daysinteger

0=never, 1, 7, 30

member_limitinteger

max members; 0=unlimited

namestring
require_approvalboolean
searchableboolean

open for search so others can discover and join

Response

OK

successboolean

Example response

{
  "success": true
}

Changes