{"base_path":null,"components":null,"consumes":"[\"application/json\"]","definitions":{"ErrorResp":{"properties":{"error_code":{"description":"错误码","type":"string"},"error_msg":{"description":"错误信息","type":"string"}}}},"description":null,"group_id":"cb46b925a4eb40a192520da4fc33b990","host":"functiongraph.cn-north-4.myhuaweicloud.com","id":"5d9af79b30d64940a8e5daf7f996eb03","info_version":"v2","method":"put","name":"UpdateFunctionCollectState","parameters":{"Content-Type":{"default":"application/json","description":"消息体的类型(格式)","in":"header","name":"Content-Type","required":true,"type":"string","x-example":"application/json"},"X-Auth-Token":{"description":"用户Token。\n\n通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。","in":"header","name":"X-Auth-Token","required":true,"type":"string","x-example":"MIIDkgYJKoZIhvcNAQcCoIIDgzCCXXXXX..."},"project_id":{"description":"租户项目 ID,获取方式请参见[获取项目ID](functiongraph_06_0260.xml)。","in":"path","name":"project_id","required":true,"type":"string","x-example":"46b6f338fc3445b8846c71dfb1fbd9e8"}},"paths":{"/v2/{project_id}/fgs/functions/{func_urn}/collect/{state}":{"put":{"description":"更新函数置顶状态","operationId":"UpdateFunctionCollectState","parameters":[{"$ref":"#/parameters/project_id"},{"description":"函数URN","in":"path","name":"func_urn","required":true,"type":"string","x-example":"functions/urn:fss:{region}:46b6f338fc3445b8846c71dfb1fbxxxx:function:default:xxxxx:latest"},{"description":"置顶状态","in":"path","name":"state","required":true,"type":"string","x-enums":[true,false],"x-example":"true"},{"$ref":"#/parameters/X-Auth-Token"},{"$ref":"#/parameters/Content-Type"}],"responses":{"200":{"description":"ok"},"500":{"description":"Internal Server Error 服务内部错误。","schema":{"$ref":"#/definitions/ErrorResp"}}},"summary":"更新函数置顶状态","tags":["函数生命周期管理"],"x-is-registered":"Y","x-request-examples-description-1":"更新函数置顶状态。","x-request-examples-url-1":"PUT https://{Endpoint}/v2/{project_id}/fgs/functions/{function_urn}/collect/true","x-support-sdk":"Y"}}},"product_short":"FunctionGraph","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"更新函数置顶状态","tags":"函数生命周期管理","uri":null,"version":"2.0"}