Update Subscriber
Update a subscriber by UUID. Only provided fields are updated.
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"
}'
import requests
import json
url = "https://app.nashra.ai/api/v1/subscribers/123e4567-e89b-12d3-a456-426614174000"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN"
}
data = {
"email": "user@example.com",
"first_name": "Jane",
"last_name": "Smith",
"tags": [
"customer"
],
"extra_attributes": {
"plan": "enterprise"
},
"notes": "Upgraded to paid plan"
}
response = requests.put(url, headers=headers, json=data)
print(response.json())
const response = await fetch("https://app.nashra.ai/api/v1/subscribers/123e4567-e89b-12d3-a456-426614174000", {
method: "PUT",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN"
},
body: JSON.stringify({
"email": "user@example.com",
"first_name": "Jane",
"last_name": "Smith",
"tags": [
"customer"
],
"extra_attributes": {
"plan": "enterprise"
},
"notes": "Upgraded to paid plan"
})
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
"bytes"
"encoding/json"
)
func main() {
data := []byte(`{
"email": "user@example.com",
"first_name": "Jane",
"last_name": "Smith",
"tags": [
"customer"
],
"extra_attributes": {
"plan": "enterprise"
},
"notes": "Upgraded to paid plan"
}`)
req, err := http.NewRequest("PUT", "https://app.nashra.ai/api/v1/subscribers/123e4567-e89b-12d3-a456-426614174000", bytes.NewBuffer(data))
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "Bearer YOUR_API_TOKEN")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://app.nashra.ai/api/v1/subscribers/123e4567-e89b-12d3-a456-426614174000')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Put.new(uri)
request['Content-Type'] = 'application/json'
request['Authorization'] = 'Bearer YOUR_API_TOKEN'
request.body = '{
"email": "user@example.com",
"first_name": "Jane",
"last_name": "Smith",
"tags": [
"customer"
],
"extra_attributes": {
"plan": "enterprise"
},
"notes": "Upgraded to paid plan"
}'
response = http.request(request)
puts response.body
{
"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": "#ff5733",
"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": {}
}
{
"error": "Not Found",
"message": "The requested resource was not found",
"code": 404
}
{
"error": "Unprocessable Entity",
"message": "The request was well-formed but contains semantic errors",
"code": 422,
"details": [
{
"field": "password",
"message": "Password must be at least 8 characters long"
}
]
}
PUT
/subscribers/{uuid}PUT
Bearer Token
Bearer Tokenstring
RequiredAPI token generated in Settings > API Tokens
API token generated in Settings > API Tokens
path
uuidstring
RequiredFormat: uuid
Content-Typestring
RequiredThe media type of the request body
Options: application/json
Request Preview
Response
Response will appear here after sending the request
Authentication
header
Authorizationstring
RequiredBearer token. API token generated in Settings > API Tokens
Path Parameters
Responses
dataobject
metaobject
Was this page helpful?
Last updated Mar 2, 2026
Built with Documentation.AI