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}
| Attribute | Type | Required | Location | Description | Example |
|---|---|---|---|---|---|
Public-Token | string | Yes | Header | RuStore API access token. | N/A |
packageName | string | Yes | path | App package name. | com.myapp.example |
devVkId | string | Yes | path | VK ID of the user to grant or edit access for. | 743103 |
roleName | string | Yes | path | Role to grant or edit. | • ADMIN — administrator; • RELEASE_MANAGER — release manager; • DEV — developer; • FINANCIAL_MANAGER — finance manager; • SUPPORT — support specialist. |
Response
| Attribute | Type | Required | Description | Example |
|---|---|---|---|---|
code | string | Yes | Response code. | error / OK |
message | string | No | Human-readable explanation of the code. | N/A |
body{} | object | Yes | N/A | N/A |
timestamp | timestamptz | Yes | Response time. | 2022-07-08T13:24:41.8328711+03:00 |
body{}
| Attribute | Type | Required | Description | Example |
|---|---|---|---|---|
content[] | array | Yes | Array containing the list of users and their roles. |
body.content[]
| Attribute | Type | Required | Description | Example |
|---|---|---|---|---|
devVkId | string | Yes | VK ID. | 161930531 |
role | string | Yes | Access type (role). | DEV |
firstName | string | Yes | User first name. | Василий |
lastName | string | Yes | User last name. | Иванов |
Errors
code | message | Description | Action |
|---|---|---|---|
400 | Owner role cannot be selected | You 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"
}