Boltmesh Docs
OpenAPI

Update a waitlist project

Update a waitlist project.

PUT
/v1/waitlists/{id}

Authorization

Authorization

AuthorizationBearer <token>

Your team's root key.

In: header

Request Body

application/jsonRequired
namestring

Name

Length1 <= length <= 35
descriptionstring

Description

Length2 <= length <= 300
discordEnabled?boolean
discordMessageType?unknown
Value in"channel_message" | "direct_message"
discordChannelId?string
Length1 <= length <= 100
discordUserId?string
Length1 <= length <= 100
slackEnabled?boolean
slackWorkspaceId?string
Length1 <= length <= 100
slackMessageType?unknown
Value in"channel_message" | "direct_message"
slackChannelId?string
Length1 <= length <= 100
slackUserId?string
Length1 <= length <= 100

Path Parameters

idstring

Unique ID

Pattern"^[a-zA-Z0-9_-]{21}$"
Length21 <= length <= 21

Response Body

OK

TypeScript Definitions

Use the response body type in TypeScript.

okboolean

The response status.

messagestring

The reponse messgae.

projectobject
curl -X PUT "https://api.boltmesh.com/v1/waitlists/stringstringstringstr" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "This is a name.",
    "description": "This is a description."
  }'
const body = JSON.stringify({
  "name": "This is a name.",
  "description": "This is a description."
})

fetch("https://api.boltmesh.com/v1/waitlists/stringstringstringstr", {
  body
})
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
  "strings"
)

func main() {
  url := "https://api.boltmesh.com/v1/waitlists/stringstringstringstr"
  body := strings.NewReader(`{
    "name": "This is a name.",
    "description": "This is a description."
  }`)
  req, _ := http.NewRequest("PUT", url, body)
  req.Header.Add("Content-Type", "application/json")
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://api.boltmesh.com/v1/waitlists/stringstringstringstr"
body = {
  "name": "This is a name.",
  "description": "This is a description."
}
response = requests.request("PUT", url, json = body, headers = {
  "Content-Type": "application/json"
})

print(response.text)
{
  "ok": true,
  "message": "string",
  "project": {
    "id": "string",
    "name": "string",
    "description": "string",
    "teamId": "string",
    "createdAt": "2019-08-24T14:15:22Z",
    "createdWay": "dashboard",
    "discordEnabled": true,
    "discordMessageType": "channel_message",
    "discordChannelId": "string",
    "discordUserId": "string",
    "slackEnabled": true,
    "slackWorkspaceId": "string",
    "slackMessageType": "channel_message",
    "slackChannelId": "string",
    "slackUserId": "string"
  }
}