Create Project

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

Create a project in the hotel industry based on the time zone, name, address, area code, and other information.

API address

POST: /v1.0/osaas/project

Request parameter

Parameter nameTypeINRequiredDescription
projectNameStringuritrueThe name of a specified project. Up to 64 characters can be entered.
locationIdStringuritrueThe unique ID of a specified location.
addressStringuritrueThe detailed address. Up to 80 characters can be entered.
timeZoneIdStringuritrueThe ID of a specified time zone.

Return parameter

Parameter nameTypeDescription
codeIntegerThe response code if the API call fails. This parameter value is empty if the API call succeeds.
successStringIndicate whether the request is successful. Valid values:
  • true: success.
  • false: failure.
msgStringThe response message that is returned if the request fails. It is empty if the request is successful.
tLongThe 13-bit timestamp.
resultStringThe unique ID of a specified project.

Request example

POST: /v1.0/osaas/project
  "address": "***Hangzhou City, Zhejiang Province",
  "location_id": "11",
  "time_zone_Id": "Asia/Shanghai",
  "project_name": "** Project"

Return example

    "result": "116082396505314******",
    "t": 1566053034624,
    "success": true

Error code

For more information, see error code.