Current section
Files
Jump to
Current section
Files
priv/docs/methods/functions.distributions.permissions.add.json
{
"args": {
"function_app_id": {
"desc": "The encoded ID of the app",
"example": "A12345",
"required": false,
"type": "string"
},
"function_callback_id": {
"desc": "The callback ID defined in the function's definition file",
"example": "my_function",
"required": false,
"type": "string"
},
"function_id": {
"desc": "The encoded ID of the function",
"example": "Fn12345",
"required": false,
"type": "string"
},
"user_ids": {
"desc": "List of encoded user IDs",
"example": "U1234,U2345,U3456",
"required": false,
"type": "array"
}
},
"desc": "Grant users access to a custom slack function if its permission\\_type is set to named\\_entities",
"errors": {
"app_not_found": "This app does not exist.",
"function_not_found": "This function does not exist.",
"invalid_permission_type": "This function requires permission\\_type to be set as named\\_entities before adding users.",
"unknown_method": "This method does not exist.",
"user_not_found": "One or more of the named entities was not found."
},
"rate_limit": {
"label": "Tier 3: 50+ per minute",
"url": "https://docs.slack.dev/apis/web-api/rate-limits"
},
"scopes": {}
}