Skip to main content
PUT
Grant access
PUT https://api-datahub.octoparse.com/v1/data-apps/{app_id}/grants/{username} Authentication: API key required (Authorization: Bearer <API Key>). App author only; others get 404. Open the app to a specific user (idempotent). Takes effect only when scope=shared. Granted users can view and run the app and are billed at its price (the runner pays). The API accepts a username and stores a user id, because usernames can change and are not identifiers.

Request

Path parameters

string
required
App reference.
string
required
Username of the user to grant.

Example request

Response

200 success

The payload is wrapped in data. Fields:
boolean
Always true.

Errors

Error responses use {"error": {code, category, message, retryable}}. See Errors.

Client libraries

The Python and JavaScript SDKs do not wrap this endpoint yet. Call REST directly.