Revoke access
This method allows you to revoke the user's access.
note
This method works with the app package name (packageName). To revoke access by app ID, use the batch method.
Interaction parameters
DELETE https://public-api-m.rustore.ru/public/v1/application/{packageName}/developer/{devVkId}/role/{roleName}
| Attribute | Type | Required | Location | Description | Example |
|---|---|---|---|---|---|
Public-Token | string | Yes | Header | Access token to API RuStore. | N/A |
packageName | string | Yes | path | App package name | com.myapp.example |
devVkId | string | Yes | path | VK ID of the user whose access is to be revoked. | 743103 |
roleName | string | Yes | path | User's role to be revoked. | • OWNER; • NON_RESIDENT_OWNER; • INDIVIDUAL_OWNER; • ADMIN; • RELEASE_MANAGER; • DEV; • FINANCIAL_MANAGER; • SUPPORT. |
note
Read more about each role here.
Response example
| Attribute | Type | Required | Description | Example |
|---|---|---|---|---|
code | string | Yes | Response code | error/OK |
message | string | No | Decoded response code | N/A |
timestamp | timestamptz | Yes | Response time | 2022-07-08T13:24:41.8328711+03:00 |
body{} | string | Yes | N/A | N/A |
Possible errors
code | message | Description | Solution |
|---|---|---|---|
| 400 | Incorrect parameter role | Such a role does not exist | Make sure that the specified role is available. |
| 400 | Owner role can not be revoked | You cannot remove an owner | |
| 404 | No application developer with this role found | We have not found a developer with this role | Make sure that the parameters devVkId and roleName are set correctly. |
Request example
curl --location --request DELETE 'https://public-api-m.rustore.ru/public/v1/application/com.package.example/developer/1111111111/role/DEV' \
--header 'Public-Token: {YOURtoken}'
Response example
{
"code": "OK",
"message": null,
"body": null,
"timestamp": "2024-03-25T20:50:36.360850021+03:00"
}