# Mutations / Miscellaneous

# Miscellaneous

**Mutation**
## lockResource — Returns *Boolean*

<p class="scopes"><span class="scope scope--none">No scope required</span></p>

Lock a resource to your application, this will prevent all other applications and users from deleting it. It will also be automatically deleted if your application is revoked. In order to lock a resource, you require the permission to delete that resource.

| Arguments | Type | Description |
| --- | --- | --- |
| id | [ID!](/documentation/Types/UUID#UUID) | The ID of the resource to lock |
| type | [LockableResourceEnum!](/documentation/Enums/Miscellaneous#LockableResourceEnum) | The type of resource to lock |

**Example Mutation**

```graphql
mutation LockResource($id: ID!, $type: LockableResourceEnum!) {
    lockResource(id: $id, type: $type)
}

# Example variables
{
    "id": "<ID>",
    "type": "PRODUCT"
}
```

**Mutation**
## unlockResource — Returns *Boolean*

<p class="scopes"><span class="scope scope--none">No scope required</span></p>

Unlock a previously locked resource. Only the application that locked the resource can unlock it.

| Arguments | Type | Description |
| --- | --- | --- |
| id | [ID!](/documentation/Types/UUID#UUID) | The ID of the resource to unlock |
| type | [LockableResourceEnum!](/documentation/Enums/Miscellaneous#LockableResourceEnum) | The type of resource to unlock |

**Example Mutation**

```graphql
mutation UnlockResource($id: ID!, $type: LockableResourceEnum!) {
    unlockResource(id: $id, type: $type)
}

# Example variables
{
    "id": "<ID>",
    "type": "PRODUCT"
}
```