Update Custom Field
Update a custom field by UUID
curl -X PUT "https://app.nashra.ai/api/v1/fields/123e4567-e89b-12d3-a456-426614174000" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-d '{
"field_name": "Company Name",
"data_name": "company_name",
"type": "text",
"is_required": true
}'
import requests
import json
url = "https://app.nashra.ai/api/v1/fields/123e4567-e89b-12d3-a456-426614174000"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN"
}
data = {
"field_name": "Company Name",
"data_name": "company_name",
"type": "text",
"is_required": true
}
response = requests.put(url, headers=headers, json=data)
print(response.json())
const response = await fetch("https://app.nashra.ai/api/v1/fields/123e4567-e89b-12d3-a456-426614174000", {
method: "PUT",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN"
},
body: JSON.stringify({
"field_name": "Company Name",
"data_name": "company_name",
"type": "text",
"is_required": true
})
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
"bytes"
"encoding/json"
)
func main() {
data := []byte(`{
"field_name": "Company Name",
"data_name": "company_name",
"type": "text",
"is_required": true
}`)
req, err := http.NewRequest("PUT", "https://app.nashra.ai/api/v1/fields/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/fields/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 = '{
"field_name": "Company Name",
"data_name": "company_name",
"type": "text",
"is_required": true
}'
response = http.request(request)
puts response.body
{
"data": {
"uuid": "9a3c2b6e-8f3a-4f7c-b1a4-1f1d5d9e4c22",
"field_name": "Company",
"data_name": "company",
"type": "text",
"is_required": false
},
"meta": {}
}
{
"error": "Not Found",
"message": "The requested resource was not found",
"code": 404
}
PUT
/fields/{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
Body
application/json
typestring
Allowed values:
textnumberdatebooleanResponses
dataobject
metaobject
Was this page helpful?
Last updated Mar 2, 2026
Built with Documentation.AI