Miscellaneous
Mutation
lockResource — Returns Boolean
No scope required
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 |
The ID of the resource to lock |
|
|
type |
The type of resource to lock |
Example Mutation
mutation LockResource($id: ID!, $type: LockableResourceEnum!) {
lockResource(id: $id, type: $type)
}
# Example variables
{
"id": "<ID>",
"type": "PRODUCT"
}Mutation
unlockResource — Returns Boolean
No scope required
Unlock a previously locked resource. Only the application that locked the resource can unlock it.
| Arguments | Type | Description |
|---|---|---|
|
id |
The ID of the resource to unlock |
|
|
type |
The type of resource to unlock |
Example Mutation
mutation UnlockResource($id: ID!, $type: LockableResourceEnum!) {
unlockResource(id: $id, type: $type)
}
# Example variables
{
"id": "<ID>",
"type": "PRODUCT"
}