Skip to content

Lock Request

Lock Requests are how you set and release exclusive locks on CEO items.

GET /v3/lock-request/{uuid}

Return a lock by UUID.

Acl Action: LOCKREQUEST get

Example Response:

[
    {
        "id": "105",
        "uuid": "AAAA-1234",
        "srn": "srn:tsn:ceo-core\/content:BBBB-1234",
        "user_id": "1",
        "state": "accepted",
        "created_at": "2017-03-01 15:50:30",
        "modified_at": "2017-03-01 15:50:30",
        "user": {
            "id": "1",
            "uuid": "CCCC-12345",
            "name": "mike",
            "slug": "mike",
            "email": "mike@getsnworks.com",
            "is_snworks": "1",
            "srn": "srn:tsn:ceo-core\/user:CCCC-12345"
        }
    }
]

POST /v3/lock-request

Create a new lock request. The locking user will always be the API requesting user.

Acl Action: LOCKREQUEST create

Example Request:

{
    "srn": "BBBB-1234"
}

Example Response: See GET /v3/lock-request/{uuid}

DELETE /v3/lock-request/{uuid}

Release a lock.

Example Response:

{
    "message": "ok"
}