Slack Notification API property fields location mismatch between GET/PUT

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

GET /api/v4/projects/:id/slack returns a property object that contains fields such as

{
  "id": 43318813,
  // redacted some properties from response
  "properties": {
    "webhook": "https://hooks.slack.com/services/.../.../...",
    "username": "Ecosystem Bot",
    "notify_only_broken_pipelines": "0",
    "branches_to_be_notified": "default",
    "push_channel": "",
    "issue_channel": "g_ecosystem",
    "confidential_issue_channel": "g_ecosystem",
    "merge_request_channel": "",
    "note_channel": "",
    "confidential_note_channel": "",
    "tag_push_channel": "",
    "pipeline_channel": "",
    "wiki_page_channel": "",
    "deployment_channel": ""
  }
}

PUT /api/v4/projects/:id/slack expects the fields in the above GET response to be at the response root instead of under properties

Edited by 🤖 GitLab Bot 🤖