PATCH
/
projects
/
{id}
curl --request PATCH \
  --url https://wt.ls/api/v4/projects/{id} \
  --header 'Content-Type: application/json' \
  --header 'apiKey: <api-key>' \
  --data '{
  "name": "<string>",
  "url": "<string>",
  "mode": "<string>",
  "startFrom": 123,
  "referrals": true,
  "color": "<string>",
  "title": "<string>",
  "desc": "<string>",
  "socialDescription": "<string>",
  "senderName": "<string>",
  "replyTo": "<string>",
  "sender": "<string>",
  "legal": "<string>"
}'
{
  "data": {
    "project": {
      "id": "<string>",
      "name": "<string>",
      "url": "<string>",
      "mode": "<string>",
      "startFrom": 123,
      "referrals": true,
      "color": "<string>",
      "title": "<string>",
      "desc": "<string>",
      "socialDescription": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "metrics": {}
    }
  }
}

Authorizations

apiKey
string
header
required

API key to authorize requests

Path Parameters

id
string
required

ID of the project to update

Body

application/json
name
string

Name of the project

url
string

URL identifier for the project

mode
string

Project mode

startFrom
integer

Starting number for the project

referrals
boolean

Whether referrals are enabled

color
string

Primary color for the project

title
string

Project title

desc
string

Project description

socialDescription
string

Social media description

senderName
string

Name used for sending emails

replyTo
string

Reply-to email address

sender
string

Sender email address

Legal information

Response

200
application/json
Project updated successfully
data
object