Skip to main content

Revoke access

This method allows you to revoke the user's access.

Interaction parameters

DELETE https://public-api.rustore.ru/public/v1/application/{packageName}/developer/{devVkId}/role/{roleName}

AttributeTypeRequiredLocationDescriptionExample
Public-TokenstringYesHeaderAccess token to API RuStore.N/A
packageNamestringYespathApp package namecom.myapp.example
devVkIdstringYespathVK ID of the user whose access is to be revoked.743103
roleNamestringYespathUser'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

AttributeTypeRequiredDescriptionExample
codestringYesResponse codeerror/OK
messagestringNoDecoded response codeN/A
timestamptimestamptzYesResponse time2022-07-08T13:24:41.8328711+03:00
body`stringYesN/AN/A

Possible errors

codemessageDescriptionSolution
400Incorrect parameter roleSuch a role does not existMake sure that the specified role is available.
400Owner role can not be revokedYou cannot remove an owner
404No application developer with this role foundWe have not found a developer with this roleMake sure that the parameters devVkId and roleName are set correctly.

Request example

curl --location --request DELETE 'https://public-api.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"
}