Getting Started
Access API
Analytics API
Collections API
Registrations API
Short URLs API
Short URLs API
Update short URL
Updates the metadata and/or registration settings for a short URL. At least one of metadata or registration_settings must be provided.
PATCH
/
v1
/
short-urls
/
{id}
Copy
Ask AI
curl --request PATCH \
--url https://api.oneofnone.io/v1/short-urls/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"metadata": {},
"registration_settings": {}
}'
Copy
Ask AI
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>",
"collection_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"token_id": 123,
"title": "<string>",
"qr_code": "<string>",
"destination_url": "<string>",
"registration_settings": {
"triggerButton": {
"active": true,
"unregisteredLabel": "<string>",
"registeredLabel": "<string>",
"className": "<string>"
},
"auth": {
"title": "<string>",
"message": "<string>",
"image": "<string>"
},
"form": {
"title": "<string>",
"message": "<string>",
"fields": {
"firstName": true,
"lastName": true,
"postalCode": true,
"phoneNumber": true
},
"consents": [
{
"id": "<string>",
"title": "<string>",
"required": true,
"label": "<string>"
}
]
},
"success": {
"title": "<string>",
"message": "<string>",
"image": "<string>",
"button": {
"label": "<string>",
"url": "<string>",
"className": "<string>"
},
"discountCode": "<string>"
}
},
"metadata": {},
"collection": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"slug": "<string>",
"image": {
"alt": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"file_type": "<string>",
"id": 123,
"poster_url": "<string>",
"size": 123,
"tags": [
"<string>"
],
"thumbnail_url": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"url": "<string>"
}
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
Authorizations
The API key required for accessing protected routes. It should be included in the request headers as x-api-key
.
Path Parameters
The URL identifier of the short URL to update.
Body
application/json
Response
200
application/json
Successfully updated short URL.
A short URL that provides quick access to products or collections, with optional registration functionality and QR code support.
Copy
Ask AI
curl --request PATCH \
--url https://api.oneofnone.io/v1/short-urls/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"metadata": {},
"registration_settings": {}
}'
Copy
Ask AI
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>",
"collection_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"token_id": 123,
"title": "<string>",
"qr_code": "<string>",
"destination_url": "<string>",
"registration_settings": {
"triggerButton": {
"active": true,
"unregisteredLabel": "<string>",
"registeredLabel": "<string>",
"className": "<string>"
},
"auth": {
"title": "<string>",
"message": "<string>",
"image": "<string>"
},
"form": {
"title": "<string>",
"message": "<string>",
"fields": {
"firstName": true,
"lastName": true,
"postalCode": true,
"phoneNumber": true
},
"consents": [
{
"id": "<string>",
"title": "<string>",
"required": true,
"label": "<string>"
}
]
},
"success": {
"title": "<string>",
"message": "<string>",
"image": "<string>",
"button": {
"label": "<string>",
"url": "<string>",
"className": "<string>"
},
"discountCode": "<string>"
}
},
"metadata": {},
"collection": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"slug": "<string>",
"image": {
"alt": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"file_type": "<string>",
"id": 123,
"poster_url": "<string>",
"size": 123,
"tags": [
"<string>"
],
"thumbnail_url": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"url": "<string>"
}
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
Assistant
Responses are generated using AI and may contain mistakes.