Skip to content

Sharer Sets Share Usage Time

Interface Address:/v2/binding/enduserapi/setShareTime

Request Method:PUT

Request Data Type:application/json

Response Data Type:*/*

Interface Description:Sharer Sets Share Usage Time

Request Parameters:

Parameter NameParameter DescriptionRequest TypeRequiredData Typeschema
shareCodeShare codequerytruestring
sharingExpireAtDevice usage expiration time in millisecond timestamp, representing the time until which the shared device can be used by the person it's shared withquerytrueinteger(int64)

Response Status:

Status CodeDescriptionschema
200Sharer successfully set share usage timeRegistration code response data
5032Token verification failed
5041No permission
5106Please enter token
5136Please enter share code

Response Parameters:

Parameter NameParameter DescriptionTypeschema
codeResponse status codeinteger(int32)integer(int32)
dataResponse dataobject
extMsgExtended messagestring
msgResponse messagestring

Response Example:

javascript
{
	"code": 0,
	"data": {},
	"extMsg": "",
	"msg": ""
}