Skip to main content
PATCH
/
actions
/
{id}
cURL
curl --request PATCH \
  --url https://letterby.com/api/v4/actions/{id} \
  --header 'Content-Type: application/json' \
  --header 'apiKey: <api-key>' \
  --data '
{
  "name": "<string>",
  "increase": 123
}
'
{
  "data": {
    "action": {
      "id": "<string>",
      "name": "<string>",
      "increase": 123,
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "subId": "<string>"
    }
  }
}

Authorizations

apiKey
string
header
required

API key to authorize requests

Path Parameters

id
string
required

ID of the action to update

Body

application/json
name
string

Name of the action

increase
integer

Points to increase

Response

Action updated successfully

data
object