Adding Repository to Favorites

Last updated: 2019-08-23 15:19:44

API Description

This API (AddFavor) adds the specified repository to Favorites.
API domain name:

Input Parameters

The following parameters are action-specific. For common parameters required for all API requests, see Common Request Parameters.

Parameter Name Description Type Required
reponame Repository name String Yes
repotype Type of the repository added to Favorites
QCLOUD HUB: Tencent Cloud repository
DOCKER HUB: Docker Hub image
String Yes

Output Parameters

Parameter Name Description Type
code Common error code. 0: Successful; other values: Failed. Int
codeDesc Description of the action status. When the action has succeeded, "Success" is returned. When the action has failed, a message describing the cause of the error is returned. String
message Description of the Module error related to this API String



  &repotype=QCLOUD HUB
  &other common parameters


    "code": 0,
    "message": "", 
    "codeDesc": "Success"