curl --request PUT \
--url https://staging.app.dados.rio/link/api/urls/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"description": "Updated description",
"destination": "https://new-example.com",
"expires_at": "2024-12-31T23:59:59Z",
"image_url": "https://new-example.com/image.jpg",
"short_path": "new-custom-path",
"title": "Updated Title"
}'
{
"created_at": "2024-01-01T12:00:00Z",
"description": "A great website",
"destination": "https://example.com",
"expires_at": "2024-12-31T23:59:59Z",
"id": "550e8400-e29b-41d4-a716-446655440000",
"image_url": "https://example.com/image.jpg",
"short_path": "abc123",
"title": "My Website",
"updated_at": "2024-01-01T12:00:00Z"
}
Update an existing short URL
curl --request PUT \
--url https://staging.app.dados.rio/link/api/urls/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"description": "Updated description",
"destination": "https://new-example.com",
"expires_at": "2024-12-31T23:59:59Z",
"image_url": "https://new-example.com/image.jpg",
"short_path": "new-custom-path",
"title": "Updated Title"
}'
{
"created_at": "2024-01-01T12:00:00Z",
"description": "A great website",
"destination": "https://example.com",
"expires_at": "2024-12-31T23:59:59Z",
"id": "550e8400-e29b-41d4-a716-446655440000",
"image_url": "https://example.com/image.jpg",
"short_path": "abc123",
"title": "My Website",
"updated_at": "2024-01-01T12:00:00Z"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
URL ID
URL update request
The body is of type object
.
OK
The response is of type object
.