Update a Loop Link
Update (replace) an existing Loop Link.
Authorizations
AuthorizationstringRequired
Use 'Authorization: Bearer <YOUR_API_KEY>' as documented at https://docs.predicthq.com/authentication
Path parameters
link_idstringRequired
An existing Loop Link ID.
Body
expire_dtstring · date-timeOptional
Date/time the Loop Link is set to expire in ISO 8601 format.
All dates are in UTC.
This is an optional field - omit if not needed.
E.g. 2023-05-08T00:29:45.859Z
namestring · min: 1 · max: 120OptionalExample:
Name of the Loop Link. This is for your own use as a way to differentiate your Loop Links.
E.g. Hotel ABC
Hotel ABCPattern: ^[a-zA-Z0-9 _-]+$Responses
200
Successful Response
422
Validation Error
application/json
put
/v1/loop/links/{link_id}PUT /v1/loop/links/{link_id} HTTP/1.1
Host: api.predicthq.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 109
{
"expire_dt": "2025-11-14T15:02:57.283Z",
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"name": "Hotel ABC"
}No content
Examples
curl -X PUT "https://api.predicthq.com/v1/loop/links/$LINK_ID" \
-H "Accept: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @<(cat <<EOF
{
"name": "Hotel A",
"expire_dt": "2024-12-31T00:00:00",
"metadata": {
"hotel_id": "123456789"
}
}
EOF
)import requests
response = requests.put(
url="https://api.predicthq.com/v1/loop/links/$LINK_ID",
headers={
"Authorization": "Bearer $ACCESS_TOKEN",
"Accept": "application/json"
},
json={
"name": "Hotel A",
"expire_dt": "2024-12-31T00:00:00",
"metadata": {
"hotel_id": "123456789"
}
}
)
print(response.status_code)OpenAPI Spec
The OpenAPI spec for Loop API can be found here.
Guides
ow are some guides relevant to this API:
Last updated
Was this helpful?