Update QR Code Tag

Update QR Code Tag

PATCH /api/qrcode-tags/uuid/{uuid}

Update one or more fields of an existing QR code tag. All body fields are optional — only provided fields will be updated.

Path Parameters

ParameterTypeRequiredDescription
uuidstringYesUUID of the tag to update

Request Body

ParameterTypeRequiredDescription
tag_display_namestringNoUpdated display name for the client
tag_namestringNoUpdated internal name of the client
tag_numberstringNoUpdated unique number for the client
statusstringNoStatus: ACTIVE or INACTIVE
typestringNoTag type: SITE or CLIENT
deletedbooleanNoSoft-delete the client
service_alert_recipientsarrayNoList of notification recipients
cancel_scheduled_subscriptionbooleanNoSet to true to cancel the scheduled subscription

Service Alert Recipient

Each recipient object in service_alert_recipients:

FieldTypeRequiredDescription
contact_typestringYesType of contact (e.g. email, phone)
contact_valuestringYesContact email or phone number
contact_namestringNoName of the contact person
formatted_phone_numberstringYesFormatted phone number (if contact type is phone)
is_activebooleanNoWhether this recipient is active

Example

json
{
  "tag_display_name": "Updated Entrance",
  "status": "INACTIVE"
}

See Errors & Rate Limits for the common error contract used across the API.

Error Codes

StatusMeaning
400Bad Request — validation error or duplicate tag
401Unauthorized
403Access Denied or subscription required
404Not Found
500Internal Server Error

Example Request

curl
curl -X PATCH http://staging.didyougo.com.au/api/qrcode-tags/uuid/XYZ789UVW123RST456MNOP \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer your_api_key:your_api_secret" \
  -d '{
    "tag_display_name": "Updated Entrance",
    "status": "INACTIVE"
  }'

Try It

Try it

Requests are sent without cookies — you must provide a valid Bearer <api_key>:<api_secret> header.

API Response
Click the Send API Request button above and see the response here!

Example Response

json
{
  "uuid": "XYZ789UVW123RST456MNOP",
  "qr_code_uuid": "ABC123DEF456GHI789JKLM",
  "tag_display_name": "Updated Entrance",
  "tag_name": "entrance-01",
  "tag_number": "TAG-001",
  "type": "SITE",
  "status": "INACTIVE",
  "deleted": false,
  "is_favourite": false,
  "created_on": "2025-01-15T10:30:00Z",
  "updated_on": "2025-01-16T14:00:00Z",
  "deleted_on": null
}