Skip to main content

Uniphore Customer Portal

Add a Lock to a Specific Conversation

Use the add a lock to a specific conversation request to lock a conversation and prevent it from manual or automated deletion.

Endpoint

Method: POST

URL: /lock

Request Parameter

Parameter Name

Data Type

Description

Required/Optional

category

String

Enter the category for the lock, at the time of writing this should be LOCK_CATEGORY_DEFAULT.

Required

description

String

Enter a description for the lock, a simple explanation of why the conversation is to be locked.

Required

conversationId

String

The ID of the conversation to lock.

Required

Response and Error Code

Response Code

Condition

201

Created

Response Parameter

Parameter Name

Data Type

Description

locks

Array

The details of the newly created lock.

id

Integer

The automatically generated ID of the lock, this is used to delete the lock if needed.

tenantId

String

The ID of your tenant.

conversationId

String

The ID of the conversation with the newly created lock, this will match the conversation ID entered in the request body.

category

String

The category of lock, at the time of writing only the default category is available, this will match the category specified in the request body.

description

String

The description of the lock, (likely a simple explanation of why the conversation is locked), this will match the description specified in the request body.

createdDate

Date Time

When the conversation was locked, in the format YYYY-MM-DDT00:00:00.000000Z.

user

Array

The details of the user that added the lock to the conversation.

userId

String

The ID of the user that added the lock to the conversation.

email

String

The email of the user that added the lock to the conversation.

fullName

String

The full name of the user that added the lock to the conversation.

busniessUnit

String

The business unit of the user that added the lock to the conversation.

Sample Request
{
    "category": "LOCK_CATEGORY_DEFAULT",
    "description": "Ongoing Sale",
    "conversationId": "e5a256d5-aad1-4a56-8509-af19df7fe0ef"
}
Sample Response
{
    "locks": [
        {
            "id": "3778",
            "tenantId": "67hg8362-g3d2-7g92-9273-d9h02kr83736",
            "conversationId": "e5a256d5-aad1-4a56-8509-af19df7fe0ef",
            "category": "LOCK_CATEGORY_DEFAULT",
            "description": "Ongoing Sale",
            "createdDate": "2024-09-04T13:49:03.033318Z",
            "user": {
                "userId": "auth0|735ujf53h235bn09835d984h",
                "email": "jihn.doe@uniphore.com",
                "fullName": "John Doe",
                "businessUnit": "Sales"
            }
        }
    ]
}