`PATCH /v1/orgs/{org}/slack/settings`.
PATCH
/v1/orgs/{org}/slack/settings
const url = 'https://api.updawg.net/v1/orgs/example/slack/settings';const options = { method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{"approvals_from_slack":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.updawg.net/v1/orgs/example/slack/settings \ --header 'Content-Type: application/json' \ --data '{ "approvals_from_slack": true }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”org
required
string
Organization slug.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
approvals_from_slack
required
boolean
Example generated
{ "approvals_from_slack": true}Responses
Section titled “Responses”Changed, and audited as slack.settings_changed.
Media typeapplication/json
Whether proposals may be approved from Slack (DAWG-313).
object
approvals_from_slack
required
Off unless an admin turned it on. Rejecting, snoozing, halting and resuming need only a linked account.
boolean
Example generated
{ "approvals_from_slack": true}Not a settings document.
Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}No session.
Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}Not permitted for this role, or an API token: who may approve from where is a person’s decision.
Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}No such organization, or not yours — one answer for both.
Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}The organization’s data is in another region (wrong-region, DAWG-159). detail names that region’s API; send the request there.
Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}Over the organization’s request limit. Retry-After says when to try again; RateLimit-Limit is the burst.
Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}