团队Upsert
POST
/team/upsert
最后修改时间:2025-03-31 11:20:18
请求参数
Authorization
在 query 添加参数
app_key
示例:
app_key: ********************
Header 参数
Content-MD5
string
必需
示例值:
application/json
Body 参数application/json
team_id
integer
团队ID
team_name
string
团队名称
reset_if_name_exist
boolean
是否按名称更新
description
string
团队描述
ref_id
string
关联ID
person_ids
array[integer]
成员ID列表
emails
array[string]
成员邮件列表
phones
array[string]
成员手机列表
示例
{
"team_id": 0,
"team_name": "string",
"reset_if_name_exist": true,
"description": "string",
"ref_id": "string",
"person_ids": [
0
],
"emails": [
"string"
],
"phones": [
"string"
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.flashcat.cloud/team/upsert?app_key' \
--header 'Content-MD5: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"team_id": 0,
"team_name": "string",
"reset_if_name_exist": true,
"description": "string",
"ref_id": "string",
"person_ids": [
0
],
"emails": [
"string"
],
"phones": [
"string"
]
}'
返回响应
🟢200成功
application/json
Body
error
object (DutyError)
可选
code
enum<string>
错误码
枚举值:
InvalidParameterInvalidContentTypeUnauthorizedAccessDeniedMethodNotAllowedRequestTooFrequentlyRequestVerifyRequiredDangerousOperationRequestLockedRouteNotFoundBalanceNotEnoughUndonedOrderExistResourceNotFoundInternalErrorReferenceExist
message
string
错误描述
data
object
可选
team_id
integer
可选
示例
{
"error": {
"code": "InvalidParameter",
"message": "string"
},
"data": {
"team_id": 0
}
}

添加官方技术人员微信
在这里,获得使用上的任何帮助,快速上手企业告警一站式响应平台FlashDuty


修改于 2025-03-31 11:20:18