Skip to content

Add Resource Lock

This endpoint adds a lock on the provided resource.

1
POST /locks

Input Parameters

This endpoint requires a JSON body be posted.

JSON Prop Type Required Description
resourceId int Required Resource Id, on which lock has to set
resourceType ResourceType Required Type of the resouce
createdBy string Required Name of the user who is creating the lock

Output

This endpoint returns an HTTP response indicating success (201) with lockid or failure (500).


Example

Request

1
POST /v1/locks
1
2
3
4
5
{
    "resourceId": 50,
    "resourceType": 0,
    "createdBy": "Tier2User1"
}

Response

1
2
3
{
    "lockId": 152
}