Update web page URL

1. API Description

This API is used to update the URL address of the web page resource (only supports web page resources in the current scene).

Request mode:

  • V2.6.0 and above: POST [ip]/mwapi/V2.0/source/update-webpage-source-url
  • V2.5.0 and below: POST [ip]/mwapi/update-webpage-source-url
Administrator Rights Logged-in
No Yes

2. Input Parameters

Name Required Type Description
sourceId Yes Int Resource ID, which can be obtained via Get resource list
url Yes String New URL

3. Output Parameters

Name Type Description
status Int Status code
message String Status description

4. Example

Updating the URL address of the resource with ID 2039 to "http://www.magewell.com".

Input Example
{
    "sourceId":2039,
    "url":"http://www.magewell.com"
}
Output Example
{
    "message": "success",
    "status": 0
}

5. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Status Definition Description
4 MW_STATUS_NO_WEBPAGE No specified web page resource in the current scene
7 MW_STATUS_INVALID_ARG Missing required parameters

results matching ""

    No results matching ""