更新指定空間的詳情內容

路徑 /campus/paas/openapi/space/update
版本號 1.0.0
協議 HTTPS
請求方法 POST
是否需要用戶身份鑒權
超時時間 10000

請求參數

名稱 類型 是否必選 示例值 描述
appId String 統一應用id
spaceInfo Struct 待更新的空間內容
name String 場景名稱
spaceId String 待更新空間id
description String 空間描述
typeCode String 空間類型 space_unit 或 default

返回數據

名稱 類型 示例值 描述
code Int

響應碼, 200: 成功

message String

錯誤消息

localizedMsg String

本地語言錯誤消息

示例

請求示例

{
	"id": "1509086454180",
	"version": "1.0",
	"request":{
		"apiVer": "1.0.0"
	},
	"params":{
		"appId": "value0",
		"spaceInfo": "value1"
	}
}

正常返回示例

JSON 格式

{
    "id": "4de2c367-c1db-417c-aa15-8c585e595d92",
    "code": 200,
    "message": null,
    "localizedMsg": null,
    "data": null
}

異常返回示例

JSON 格式

{
    "id": "37f7e5fa-d6a5-4efe-8abf-5bf23dca6284",
    "code": 403,
    "message": "request forbidden.",
    "localizedMsg": "請求被禁止",
    "data": null
}

錯誤碼

HttpCode 錯誤碼 錯誤信息 描述
500 500 Internal Error Internal Error
503 503 Service Unavailable Service Unavailable
403 403 Request Limited Request Limited
401 401 Empty Signature Empty Signature
400 400 Request Format Error Request Format Error
200 20003 Find Backend Error Find Backend Error
200 20004 Backend Service Error Backend Service Error
200 20055 Backend Service Invalid Request Format Error
200 20056 Hsf Invoke Timeout Hsf Invoke Timeout
200 401 Request Authorized Error Request Authorized Error
200 403 Request Forbidden Request Forbidden
200 500 Server Error Server Error
200 2402 iotToken not exist iottoken不存在
200 2402 iotToken not exist
200 460 iotToken is blank iotToken為空
200 2402 iottoken invalid iottoken已經失效
200 2401 refreshToken invalid refreshToken已經失效
200 2402 iotToken not exist
200 403 request forbidden. 請求被禁止
200 2477 import thirdaccount failed 導入三方賬號失敗
200 460 thirdAccountMetaList is blank 三方賬號列表為空
200 403 request forbidden. 請求被禁止
200 403 request forbidden. 請求被禁止
200 460 request parameter error. 入參不正確
200 460 identityIds need between 1-50 入參錯誤
200 403 request forbidden. 請求被禁止
200 2453 app not exist appkey不存在
200 2405 identity is not existed 統一身份id不存在
200 2407 auth identity exception 不存在相應的openId