API DocsAPI Docs
post/api/group/{groupId}/cover
post/api/group/{groupId}/cover
上传小组封面
Basic Information
Request Method:
post
Request URL:
https://www.lycoo.com/api/group/{groupId}/cover
Tags:
小组图片管理
Description
为指定的小组上传封面图片。需要用户已登录且为小组管理员或所有者。
限制:
- 仅支持JPEG(JPG)格式图片
- 文件大小不超过5MB
Path Parameters
Path Parameters Explanation
Path parameters are variables in the URL path, for example:
https://www.lycoo.com/api/group/:groupId/cover
Parameter Name | Type | Required | Example Value | Description |
---|---|---|---|---|
groupId | string | Required | example | 小组ID |
Header Parameters
Header Parameters Explanation
Header parameters are used to pass additional information, such as authentication credentials, content type, etc.
Parameter Name | Type | Required | Example Value | Description |
---|---|---|---|---|
Authorization | string | Required | Bearer sha_1234567890abcdef... | The authentication header is used to verify the identity of API requests, containing an access token Format: Bearer {token} |
Request Body Parameters
Request Body Parameters Explanation
Request body parameters are used to pass complex structured data, typically using the following format: application/json
Parameter Details
Parameter Name | Type | Required | Example Value | Description |
---|---|---|---|---|
cover | string | Required | example | 要上传的封面图片,必须为JPG格式 格式: binary |
JSON Example
{
"cover": "string"
}
Response Example
200封面上传成功
{
"success": true,
"message": "string"
}
400
401
403
500