curl --request PATCH \
--url http://{defaultHost}/api/v2/platform/digital_links/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"digital_link": {
"access_counter": 0,
"line_item_id": "1",
"digital_id": "1"
}
}'
{
"data": {
"id": "8",
"type": "digital_link",
"attributes": {
"token": "hv6VNk8yK2oiZRPsB1pQnazN",
"access_counter": 0
},
"relationships": {
"digital": {
"data": {
"id": "8",
"type": "digital"
}
},
"line_item": {
"data": {
"id": "16",
"type": "line_item"
}
}
}
}
}
Updates a Digital Link
curl --request PATCH \
--url http://{defaultHost}/api/v2/platform/digital_links/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"digital_link": {
"access_counter": 0,
"line_item_id": "1",
"digital_id": "1"
}
}'
{
"data": {
"id": "8",
"type": "digital_link",
"attributes": {
"token": "hv6VNk8yK2oiZRPsB1pQnazN",
"access_counter": 0
},
"relationships": {
"digital": {
"data": {
"id": "8",
"type": "digital"
}
},
"line_item": {
"data": {
"id": "16",
"type": "line_item"
}
}
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Record updated
The response is of type object
.
Was this page helpful?