Skip to main content
PUT
/
user
/
patient
/
tags
/
{tag_id}
Update Patient Tag
curl --request PUT \
  --url https://api.decodahealth.com/user/patient/tags/{tag_id} \
  --header 'API-KEY: <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'TENANT: <tenant>' \
  --data '
{
  "name": "<string>",
  "emoji": "<string>",
  "color": "<string>",
  "isActive": true
}
'
{
  "id": "<string>",
  "name": "<string>",
  "isActive": true,
  "createdDate": "2023-11-07T05:31:56Z",
  "emoji": "<string>",
  "color": "<string>",
  "updatedDate": "2023-11-07T05:31:56Z"
}

Headers

TENANT
string
required

The tenant you are making this request on behalf of

API-KEY
string
required

Your api key

Path Parameters

tag_id
string
required

Body

application/json
name
string | null

Name of the patient tag

Required string length: 1 - 100
emoji
string | null

Emoji associated with the tag

Maximum string length: 10
color
string | null

Color code for the tag (hex format)

Maximum string length: 7
isActive
boolean | null

Whether the tag is active

Response

Successful Response

id
string
required

Unique identifier for the patient tag

name
string
required

Name of the patient tag

isActive
boolean
required

Whether the tag is active

createdDate
string<date-time>
required

Date and time when the tag was created

emoji
string | null

Emoji associated with the tag

color
string | null

Color code for the tag (hex format)

updatedDate
string<date-time> | null

Date and time when the tag was last updated