SubscribersUpdate Subscriber

Update Subscriber

Update a subscriber by UUID. Only provided fields are updated — but a tags array replaces the subscriber's whole tag list.

curl -X PUT "https://app.nashra.ai/api/v1/subscribers/123e4567-e89b-12d3-a456-426614174000" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "email": "user@example.com",
  "first_name": "Jane",
  "last_name": "Smith",
  "tags": [
    "customer"
  ],
  "extra_attributes": {
    "plan": "enterprise"
  },
  "notes": "Upgraded to paid plan"
}'
{
  "data": {
    "uuid": "9a3c2b6e-8f3a-4f7c-b1a4-1f1d5d9e4c22",
    "email": "user@example.com",
    "first_name": "John",
    "last_name": "Doe",
    "status": "subscribed",
    "tags": [
      {
        "uuid": "7b2d4c1e-3f5a-4e8d-9c6b-2a1f3e5d7c9b",
        "name": "VIP",
        "color": "blue",
        "created_at": "2025-01-15T10:30:00+00:00"
      }
    ],
    "extra_attributes": {
      "country": "Netherlands",
      "plan": "pro"
    },
    "notes": "Signed up from landing page",
    "created_at": "2025-01-15T10:30:00+00:00",
    "updated_at": "2025-01-15T10:30:00+00:00"
  },
  "meta": {}
}
PUT
/subscribers/{uuid}
PUT
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

API key created in Settings → API keys

API key created in Settings → API keys
Content-Typestring
Required

The media type of the request body

Options: application/json
emailstring
Format: email
tagsarray

Tag names. Replaces the subscriber's full tag list — include every tag you want to keep. (The bulk endpoint merges instead.)

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. API key created in Settings → API keys

Path Parameters

Body

application/json
emailstring
Example:
user@example.com
first_namestring
Example:
Jane
last_namestring
Example:
Smith
tagsarray

Tag names. Replaces the subscriber's full tag list — include every tag you want to keep. (The bulk endpoint merges instead.)

Example:
["customer"]
extra_attributesobject
Example:
{"plan":"enterprise"}
notesstring
Example:
Upgraded to paid plan

Responses

dataobject

A subscriber in your audience. Phone (WhatsApp) numbers collected by your forms aren't part of the API yet — they're neither returned here nor accepted on create or update.

metaobject