Skip to main content

Granting and editing access

This method allows you grant or edit user access (roles).

Interaction parameters

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

AttributeTypeRequiredLocationDescriptionExample
Public-TokenstringYesHeaderRuStore API access token.N/A
packageNamestringYespathApp package name.com.myapp.example
devVkIdstringYespathVK ID of the user to grant or edit access for.743103
roleNamestringYespathRole to grant or edit.ADMIN — administrator;
RELEASE_MANAGER — release manager;
DEV — developer;
FINANCIAL_MANAGER — finance manager;
SUPPORT — support specialist.

Response

AttributeTypeRequiredDescriptionExample
codestringYesResponse code.error / OK
messagestringNoHuman-readable explanation of the code.N/A
body{}objectYesN/AN/A
timestamptimestamptzYesResponse time.2022-07-08T13:24:41.8328711+03:00

body{}

AttributeTypeRequiredDescriptionExample
content[]arrayYesArray containing the list of users and their roles.

body.content[]

AttributeTypeRequiredDescriptionExample
devVkIdstringYesVK ID.161930531
rolestringYesAccess type (role).DEV
firstNamestringYesUser first name.Василий
lastNamestringYesUser last name.Иванов

Errors

codemessageDescriptionAction
400Owner role cannot be selectedYou cannot assign or edit the Owner role for an app.Check and provide a valid role value, then retry the request.

Request example

curl --location --request PUT 'https://public-api.rustore.ru/public/v1/application/com.simplemobiletools.flashlight/developer/1583977/role/ADMIN' \
--header 'Public-Token: {YOURtoken}'

Response example

{
"code": "OK",
"message": null,
"body": {
"content": [
{
"devVkId": "1583977",
"role": "ADMIN",
"firstName": "Василий",
"lastName": "Петров"
}
]
},
"timestamp": "2024-10-11T05:48:18.688028248Z0"
}