Request headers

Only registered user can perform this action
  Authentication - string - required
    Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"

Request body example

{
  "hidden_notification": {
    "notification": "delete_notification"
  }
}

Success response body

{
  "id": 14,
  "email": "kruchina.vadim@gmail.com",
  "first_name": "Vadim",
  "last_name": "Kruchina",
  "role_in_organization": "Role",
  "state": "CA",
  "city": "Los Angeles",
  "avatar_image": "https://gipper-college-logos-development.s3.amazonaws.com/s3_key",
  "enable_content_request": true,
  "payed_credit_card": false,
  "fieldhouse_user": false,
  "role": "super_admin",
  "stripe_admin": true,
  "auth_token": "eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxNCwiZXhwIjoxNjU5MjU3Nzk1fQ.dxcqT4_SighZdUUmIiFU4b-_1S9SEj6xf_OSgxOGo1Y",
  "team_exists": true,
  "can_use_site": true,
  "workspace_role": {
    "id": 1,
    "name": "super_admin"
  },
  "workspace": {
    "id": 1,
    "name": "updated2",
    "trial_type": "Two-week",
    "trial_status": "in_progress",
    "organization_type": "["Public High School", "Private High School", "College/University", "Club/Youth Sports", "Other/Not Listed"]",
    "custom_organization_type": "CUSTOM_TYPE",
    "plan": [
        "Premier"
    ],
    "subscribed": false
  },
  "payment_sources": [
    {
      "id": 1,
      "last_4": "4242",
      "expiration_month": 3,
      "expiration_year": 2023
    },
    {
      "id": 2,
      "last_4": "4242",
      "expiration_month": 3,
      "expiration_year": 2023
    }
  ],
  "user_notifications": [
    {
      "id": 1,
      "notification": {
        "title": "Heads Up! You have been added to a new team",
        "body": "<p>Your workspace member: kruchina.vadim@gmail.com has left your workspace.</p><p>This user was the admin of the team: MyTeam</p><p>To prevent the team from being removed, you have been added to this team and have been appointed as the team admin. If you do not wish to be a part of this team, please visit the team, appoint a new team admin, and leave the team.</p>",
        "link": {
          "text": "Go to Teams",
          "path": "/teams"
        }
      }
    },
    ...
  ],
  "hidden_notifications": []
}

Params

Param name Description
hidden_notification
required

Validations:

  • Must be a Hash

hidden_notification[notification]
required

notification for hidden

Validations:

  • Must be one of: delete_preset_folder_and_designs, delete_preset_folder, delete_preset, delete_media_folder, delete_media_file, revoke_workspace_invite, revoke_team_invite, delete_content_outstanding_request, delete_content_completed_request, delete_team, save_preset, close_template_publish, delete_notification, leave_workspace, delete_team_event.