Publishing
Grant access
Share an app point-to-point with a specific user. Idempotent.
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
data. Fields:
boolean
Always
true.Errors
Error responses use
{"error": {code, category, message, retryable}}. See Errors.