curl --request POST \
--url http://{defaultHost}/api/v2/platform/digital_links \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"digital_link": {
"line_item_id": "1",
"digital_id": "1",
"access_counter": 0
}
}
'{
"data": {
"id": "5",
"type": "digital_link",
"attributes": {
"token": "6bPn1uP9HWaYecdMFkFAkcc3",
"access_counter": 0
},
"relationships": {
"digital": {
"data": {
"id": "5",
"type": "digital"
}
},
"line_item": {
"data": {
"id": "13",
"type": "line_item"
}
}
}
}
}Creates a Digital Link
curl --request POST \
--url http://{defaultHost}/api/v2/platform/digital_links \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"digital_link": {
"line_item_id": "1",
"digital_id": "1",
"access_counter": 0
}
}
'{
"data": {
"id": "5",
"type": "digital_link",
"attributes": {
"token": "6bPn1uP9HWaYecdMFkFAkcc3",
"access_counter": 0
},
"relationships": {
"digital": {
"data": {
"id": "5",
"type": "digital"
}
},
"line_item": {
"data": {
"id": "13",
"type": "line_item"
}
}
}
}
}Was this page helpful?