Modify Project Information

Last Updated on : 2021-12-30 06:48:26download

Modify the information about a specified project based on the unique project ID, including the project name, location ID, address, and time zone.

API address

PUT: /v1.0/osaas/projects/{project_id}

Request parameter

Parameter nameTypeINRequiredDescription
projectIdStringuritrueThe unique ID of a specified project.
projectNameStringuritrueThe name of a specified project. Up to 64 characters can be entered.
locationIdStringurifalseThe unique ID of a specified location.
addressStringurifalseThe detailed address. Up to 80 characters can be entered.
timeZoneIdStringurifalseThe time zone ID. Example: Asia/Shanghai.

Return parameter

Parameter nameTypeDescription
codeIntegerThe response code if the API call fails. This parameter value is empty if the API call succeeds.
successStringIndicates whether the operation is successful.
msgStringThe response message that is returned if the request fails. It is empty if the request is successful.
tLongThe 13-bit timestamp.

Request example

PUT: {url}/v1.0/osaas/projects/1160823965053******
{
  "project_name": "*** Project",
  "location_id": "11",
  "address": "No. ***, *** Road",
  "time_zone_id": "Asia/Shanghai"
}

Return example

{
    "result": true,
    "t": 1566053034624,
    "success": true
}

Error code

For more information, see error code.