Team Upsert
POST
/team/upsertRequest
Header Params
Content-MD5
string
required
Example:
application/json
Body Params application/json
team_id
integer
Team ID
team_name
string
Team Name
Team name must be unique within the account
reset_if_name_exist
boolean
Update by name
If team ID is not provided but team name exists, when this value is true, the team with the same name will be updated, otherwise the update will be rejected with a duplicate name error
description
string
Team Description
person_ids
array[integer]
Member ID List
At least one of email, phone, or ID list is required. When multiple exist, the system will merge them
emails
array[string]
Member Email List
At least one of email, phone, or ID list is required. When multiple exist, the system will merge them. When an email is used by both owner and member, both will be invited to join the team
phones
array[string]
Member Phone List
At least one of email, phone, or ID list is required. When multiple exist, the system will merge them. When an email is used by both owner and member, both will be invited to join the team
Example
{
"team_id": 0,
"team_name": "string",
"reset_if_name_exist": true,
"description": "string",
"person_ids": [
0
],
"emails": [
"string"
],
"phones": [
"string"
]
}
Request samples
Responses
成功(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
error
object (DutyError)
optional
code
enum<string>
Error code
Allowed values:
InvalidParameterInvalidContentTypeUnauthorizedAccessDeniedMethodNotAllowedRequestTooFrequentlyRequestVerifyRequiredDangerousOperationRequestLockedRouteNotFoundBalanceNotEnoughUndonedOrderExistResourceNotFoundInternalErrorReferenceExist
message
string
Error description
data
object
optional
team_id
integer
optional
Example
Not configured
Last modified: 2 个月前