暂无描述{
"id":2,
"title":"配置名称修改",
"globalAuthType":1,
"basicAuthConfig":{
"userName":"",
"password":""
},
"apiKeyConfig":[
{
"key":"",
"value":"",
"type":1,
"insertPosition":"",
"accessTokenPrefix":""
},
{
"key":"",
"value":"",
"type":1,
"insertPosition":"",
"accessTokenPrefix":""
},
],
"temporaryTokenConfig":[
{
"bodyType":1,
"expiresIn":7200,
"globalAuthId":1,
"headers":[
{
"key":"",
"value":"",
"type":1,
},
],
"paramInvalidType":1,
"paramsterConfig":[
{
"key":"",
"value":"",
"type":1,
"insertPosition":"",
"accessTokenPrefix":""
},
],
"queryParams":[
{
"key":"",
"value":"",
"type":1,
},
],
"resultFormatPath":[
{
"key":"",
"value":"",
"type":1,
},
],
"resultType":1,
"url":"",
"urlEncodedValue":"",
"jsonValue":"",
"xmlValue":""
},
],
"oauthConfig":[
{
"basicConfig":{
"clientId":"",
"clientSecret":""
},
"beingAuthorized": true,
"parameterConfig":{
"key":"",
"value":"",
"type":1,
"insertPosition":"",
"accessTokenPrefix":""
},
"refreshTokenConfig":{
"params":[
{
"key":"",
"value":"",
"type":1,
},
],
"accessToken":"",
"refreshToken":"",
"refreshTokenExpireType":1,
"refreshTokenExpireValue":"7200",
"refreshTokenExpiresIn":7200,
"refreshTokenUint":0,
"tokenExpireType":1,
"tokenExpireValue":"7200",
"tokenExpireIn":7200,
"url":"",
},
"requestTokenConfig":{
"accessToken":"",
"refreshToken":"",
"headerParam":[
{
"key":"",
"value":"",
"type":1,
},
],
"jsonValue":"",
"method":"POST",
"param":[
{
"key":"",
"value":"",
"type":1,
},
],
"url":""
},
"requestUserAuthConfig":{
"codeName":"code",
"param":[
{
"key":"",
"value":"",
"type":1,
},
],
"url":"",
"state":""
}
}
]
}curl --location --request PUT 'https://api.tolink.cloud/enterprise/globalAuthUpdate' \
--header 'Content-Type: application/json' \
--data-raw '{
"id":2,
"title":"配置名称修改",
"globalAuthType":1,
"basicAuthConfig":{
"userName":"",
"password":""
},
"apiKeyConfig":[
{
"key":"",
"value":"",
"type":1,
"insertPosition":"",
"accessTokenPrefix":""
},
{
"key":"",
"value":"",
"type":1,
"insertPosition":"",
"accessTokenPrefix":""
},
],
"temporaryTokenConfig":[
{
"bodyType":1,
"expiresIn":7200,
"globalAuthId":1,
"headers":[
{
"key":"",
"value":"",
"type":1,
},
],
"paramInvalidType":1,
"paramsterConfig":[
{
"key":"",
"value":"",
"type":1,
"insertPosition":"",
"accessTokenPrefix":""
},
],
"queryParams":[
{
"key":"",
"value":"",
"type":1,
},
],
"resultFormatPath":[
{
"key":"",
"value":"",
"type":1,
},
],
"resultType":1,
"url":"",
"urlEncodedValue":"",
"jsonValue":"",
"xmlValue":""
},
],
"oauthConfig":[
{
"basicConfig":{
"clientId":"",
"clientSecret":""
},
"beingAuthorized": true,
"parameterConfig":{
"key":"",
"value":"",
"type":1,
"insertPosition":"",
"accessTokenPrefix":""
},
"refreshTokenConfig":{
"params":[
{
"key":"",
"value":"",
"type":1,
},
],
"accessToken":"",
"refreshToken":"",
"refreshTokenExpireType":1,
"refreshTokenExpireValue":"7200",
"refreshTokenExpiresIn":7200,
"refreshTokenUint":0,
"tokenExpireType":1,
"tokenExpireValue":"7200",
"tokenExpireIn":7200,
"url":"",
},
"requestTokenConfig":{
"accessToken":"",
"refreshToken":"",
"headerParam":[
{
"key":"",
"value":"",
"type":1,
},
],
"jsonValue":"",
"method":"POST",
"param":[
{
"key":"",
"value":"",
"type":1,
},
],
"url":""
},
"requestUserAuthConfig":{
"codeName":"code",
"param":[
{
"key":"",
"value":"",
"type":1,
},
],
"url":"",
"state":""
}
}
]
}'{
"code": 0,
"data": "编辑成功",
"msg": "success"
}