Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • curl. Client’s URL.

Code Block
curl -X PATCH httphttps://[YOUR_ENDPOINT]/api/voice/intent

...

Example usage

Code Block
curl -i httphttps://[YOUR_ENDPOINT]/api/voice/intent/:id

...

Code Block
HTTP/1.1 200 OK
{
    "_id": "5981b59e1c4266004c123b2b",
    "modifiedAt": "2017-08-02T12:40:18.310Z",
    "name": "test-b7a2b7c5-fe99-4650-a69a-a7b83ece239f",
    "createdBy": "5971f9f8328af5c9637958b3",
    "__v": 0,
    "isDeleted": false,
    "createdAt": "2017-08-02T11:21:02.994Z",
    "projectId": [],
    "tags": [],
    "state": {
        "mode": "lock"
    },
    "prompts": {
        "confirm": [
            "Are you from  {location} location"
        ]
    },
    "samples": [
        "test intent",
        "test complete intent"
    ],
    "slots": [
        {
            "name": "location",
            "_id": "5981c832155cc0505aecf8b9",
            "prompts": {
                "elicit": [
                    "where are you from..?"
                ],
                "confirm": [
                    "Did I hear {location}"
                ]
            },
            "samples": [
                "Im from {location} ",
                "My location is {location}"
            ]
        }
    ],
    "description": ""
}

POST

Creates a resource to for the remote server.

To create an intent in the intent library, use the following API call:

...

Example usage

Code Block
curl -i httphttps://[YOUR_ENDPOINT]/api/voice/intent

...

Example usage

Code Block
curl -i httphttps://[YOUR_ENDPOINT]/api/voice/intent/:id?projectId=595b334f6b68b2f8042285a6

...

Example usage

Code Block
curl -i httphttps://[YOUR_ENDPOINT]/api/voice/intent/:id

...

  1. Login to postman

  2. Set the method to “POST” and use the URL https://<domain-name>:<portno>/api/login.

  3. Use the below code in the body of the request and click “Send”. Please change the login credentials as per the instance/domain.

    Code Block
    {
                "username":"example@orbita.com",
                "password":"Password@123YOUR_PASSWORD"
    }
  4. You will receive a token in the response.

  5. Select the Environment that you created from the Environment dropdown on the top right corner of the page.

...

  1. Open Postman and Select the Import option.

  2. Copy the JSON content in the link httphttps://<sandbox-domain>:<portno>/apidoc/postman/ItemCollection.json and paste it in into the Paste Raw Text” tab in the import dialog box and click “Import”.

...