Accessor: client.adminApps · Source: src/resources/admin-apps.ts · 2 operations · Request and error types: namespace AdminApps
Type sources: every type an operation names, with the file that declares it and the schema value exported beside it. Import every name from slack-web-api; the Source path is where to read the shape, never what to import. ApiError, the runtime error family and the file vocabulary are excluded — see sdk-map.md.
- Signature:
adminAppsApprove(request: AdminApps.AdminAppsApproveRequest, options?: RequestOptions): ApiPromise<Defaultsuccesstemplate, AdminApps.AdminAppsApproveError> - Wire:
POST /admin.apps.approve - Auth:
slackAuth - Request body:
application/x-www-form-urlencoded;charset=UTF-8— every field markedform - SDK-sent:
header Idempotency-Key(minted per call) - Returns:
Defaultsuccesstemplate - Error:
SlackWebApiErrorwithkind: "api", an instance ofAdminApps.AdminAppsApproveError— typed arms, narrowed onerr.payload.kind - Error arms:
"defaulterrortemplate1"[default — any status no arm above covers]Defaulterrortemplate1·"undeclared"[adefault-matched body that did not fitDefaulterrortemplate1]rawBody: ArrayBuffer
Fields — AdminApps.AdminAppsApproveRequest (5):
| Field | Channel | Wire | Type | Req |
|---|---|---|---|---|
token |
header |
— | string |
yes |
contentType |
header |
Content-Type |
ContentType |
yes |
appId |
form |
app_id |
string |
no |
requestId |
form |
request_id |
string |
no |
teamId |
form |
team_id |
string |
no |
| Type | Schema value | Source |
|---|---|---|
ContentType |
contentTypeSchema |
src/models/content-type.ts |
Defaultsuccesstemplate |
defaultsuccesstemplateSchema |
src/models/defaultsuccesstemplate.ts |
Defaulterrortemplate1 |
defaulterrortemplate1Schema |
src/models/defaulterrortemplate1.ts |
- Signature:
adminAppsRestrict(request: AdminApps.AdminAppsRestrictRequest, options?: RequestOptions): ApiPromise<Defaultsuccesstemplate, AdminApps.AdminAppsRestrictError> - Wire:
POST /admin.apps.restrict - Auth:
slackAuth - Request body:
application/x-www-form-urlencoded;charset=UTF-8— every field markedform - SDK-sent:
header Idempotency-Key(minted per call) - Returns:
Defaultsuccesstemplate - Error:
SlackWebApiErrorwithkind: "api", an instance ofAdminApps.AdminAppsRestrictError— typed arms, narrowed onerr.payload.kind - Error arms:
"defaulterrortemplate1"[default — any status no arm above covers]Defaulterrortemplate1·"undeclared"[adefault-matched body that did not fitDefaulterrortemplate1]rawBody: ArrayBuffer
Fields — AdminApps.AdminAppsRestrictRequest (5):
| Field | Channel | Wire | Type | Req |
|---|---|---|---|---|
token |
header |
— | string |
yes |
contentType |
header |
Content-Type |
ContentType |
yes |
appId |
form |
app_id |
string |
no |
requestId |
form |
request_id |
string |
no |
teamId |
form |
team_id |
string |
no |
| Type | Schema value | Source |
|---|---|---|
ContentType |
contentTypeSchema |
src/models/content-type.ts |
Defaultsuccesstemplate |
defaultsuccesstemplateSchema |
src/models/defaultsuccesstemplate.ts |
Defaulterrortemplate1 |
defaulterrortemplate1Schema |
src/models/defaulterrortemplate1.ts |