Skip to content

Update single link

PUT
/api/v2/client/single-links/{single_link_id}
curl --request PUT \
--url https://app.affisemmp.com/api/v2/client/single-links/1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "b", "android_app_id": 16, "ios_app_id": 16, "huawei_app_id": 16, "samsung_app_id": 16, "xiaomi_app_id": 16, "oppo_app_id": 16, "vivo_app_id": 16, "custom_app_id": 16, "android_storage_link_id": 16, "ios_storage_link_id": 16, "huawei_storage_link_id": 16, "samsung_storage_link_id": 16, "xiaomi_storage_link_id": 16, "oppo_storage_link_id": 16, "vivo_storage_link_id": 16, "custom_storage_link_id": 16, "destination_url": "http://bailey.com/" }'
single_link_id
required
integer

The ID of the single link.

Example
1
Media type application/json
object
name

Must not be greater than 255 characters.

string
Example
b
android_app_id

This field is required when none of ios_app_id, huawei_app_id, samsung_app_id, xiaomi_app_id, oppo_app_id, vivo_app_id, custom_app_id, android_storage_link_id, ios_storage_link_id, huawei_storage_link_id, samsung_storage_link_id, xiaomi_storage_link_id, oppo_storage_link_id, vivo_storage_link_id, and custom_storage_link_id are present.

integer
nullable
Example
16
ios_app_id

This field is required when none of android_app_id, huawei_app_id, samsung_app_id, xiaomi_app_id, oppo_app_id, vivo_app_id, custom_app_id, android_storage_link_id, ios_storage_link_id, huawei_storage_link_id, samsung_storage_link_id, xiaomi_storage_link_id, oppo_storage_link_id, vivo_storage_link_id, and custom_storage_link_id are present. The id of an existing record in the applications table.

integer
nullable
Example
16
huawei_app_id

This field is required when none of android_app_id, ios_app_id, samsung_app_id, xiaomi_app_id, oppo_app_id, vivo_app_id, custom_app_id, android_storage_link_id, ios_storage_link_id, huawei_storage_link_id, samsung_storage_link_id, xiaomi_storage_link_id, oppo_storage_link_id, vivo_storage_link_id, and custom_storage_link_id are present.

integer
nullable
Example
16
samsung_app_id

This field is required when none of android_app_id, ios_app_id, huawei_app_id, xiaomi_app_id, oppo_app_id, vivo_app_id, custom_app_id, android_storage_link_id, ios_storage_link_id, huawei_storage_link_id, samsung_storage_link_id, xiaomi_storage_link_id, oppo_storage_link_id, vivo_storage_link_id, and custom_storage_link_id are present.

integer
nullable
Example
16
xiaomi_app_id

This field is required when none of android_app_id, ios_app_id, huawei_app_id, samsung_app_id, oppo_app_id, vivo_app_id, custom_app_id, android_storage_link_id, ios_storage_link_id, huawei_storage_link_id, samsung_storage_link_id, xiaomi_storage_link_id, oppo_storage_link_id, vivo_storage_link_id, and custom_storage_link_id are present.

integer
nullable
Example
16
oppo_app_id

This field is required when none of android_app_id, ios_app_id, huawei_app_id, samsung_app_id, xiaomi_app_id, vivo_app_id, custom_app_id, android_storage_link_id, ios_storage_link_id, huawei_storage_link_id, samsung_storage_link_id, xiaomi_storage_link_id, oppo_storage_link_id, vivo_storage_link_id, and custom_storage_link_id are present.

integer
nullable
Example
16
vivo_app_id

This field is required when none of android_app_id, ios_app_id, huawei_app_id, samsung_app_id, xiaomi_app_id, oppo_app_id, custom_app_id, android_storage_link_id, ios_storage_link_id, huawei_storage_link_id, samsung_storage_link_id, xiaomi_storage_link_id, oppo_storage_link_id, vivo_storage_link_id, and custom_storage_link_id are present.

integer
nullable
Example
16
custom_app_id

This field is required when none of android_app_id, ios_app_id, huawei_app_id, samsung_app_id, xiaomi_app_id, oppo_app_id, vivo_app_id, android_storage_link_id, ios_storage_link_id, huawei_storage_link_id, samsung_storage_link_id, xiaomi_storage_link_id, oppo_storage_link_id, vivo_storage_link_id, and custom_storage_link_id are present.

integer
nullable
Example
16
android_storage_link_id

This field is required when none of android_app_id, ios_app_id, huawei_app_id, samsung_app_id, xiaomi_app_id, oppo_app_id, vivo_app_id, custom_app_id, ios_storage_link_id, huawei_storage_link_id, samsung_storage_link_id, xiaomi_storage_link_id, oppo_storage_link_id, vivo_storage_link_id, and custom_storage_link_id are present.

integer
nullable
Example
16
ios_storage_link_id

This field is required when none of android_app_id, ios_app_id, huawei_app_id, samsung_app_id, xiaomi_app_id, oppo_app_id, vivo_app_id, custom_app_id, android_storage_link_id, huawei_storage_link_id, samsung_storage_link_id, xiaomi_storage_link_id, oppo_storage_link_id, vivo_storage_link_id, and custom_storage_link_id are present.

integer
nullable
Example
16
huawei_storage_link_id

This field is required when none of android_app_id, ios_app_id, huawei_app_id, samsung_app_id, xiaomi_app_id, oppo_app_id, vivo_app_id, custom_app_id, android_storage_link_id, ios_storage_link_id, samsung_storage_link_id, xiaomi_storage_link_id, oppo_storage_link_id, vivo_storage_link_id, and custom_storage_link_id are present.

integer
nullable
Example
16
samsung_storage_link_id

This field is required when none of android_app_id, ios_app_id, huawei_app_id, samsung_app_id, xiaomi_app_id, oppo_app_id, vivo_app_id, custom_app_id, android_storage_link_id, ios_storage_link_id, huawei_storage_link_id, xiaomi_storage_link_id, oppo_storage_link_id, vivo_storage_link_id, and custom_storage_link_id are present.

integer
nullable
Example
16
xiaomi_storage_link_id

This field is required when none of android_app_id, ios_app_id, huawei_app_id, samsung_app_id, xiaomi_app_id, oppo_app_id, vivo_app_id, custom_app_id, android_storage_link_id, ios_storage_link_id, huawei_storage_link_id, samsung_storage_link_id, oppo_storage_link_id, vivo_storage_link_id, and custom_storage_link_id are present.

integer
nullable
Example
16
oppo_storage_link_id

This field is required when none of android_app_id, ios_app_id, huawei_app_id, samsung_app_id, xiaomi_app_id, oppo_app_id, vivo_app_id, custom_app_id, android_storage_link_id, ios_storage_link_id, huawei_storage_link_id, samsung_storage_link_id, xiaomi_storage_link_id, vivo_storage_link_id, and custom_storage_link_id are present.

integer
nullable
Example
16
vivo_storage_link_id

This field is required when none of android_app_id, ios_app_id, huawei_app_id, samsung_app_id, xiaomi_app_id, oppo_app_id, vivo_app_id, custom_app_id, android_storage_link_id, ios_storage_link_id, huawei_storage_link_id, samsung_storage_link_id, xiaomi_storage_link_id, oppo_storage_link_id, and custom_storage_link_id are present.

integer
nullable
Example
16
custom_storage_link_id

This field is required when none of android_app_id, ios_app_id, huawei_app_id, samsung_app_id, xiaomi_app_id, oppo_app_id, vivo_app_id, custom_app_id, android_storage_link_id, ios_storage_link_id, huawei_storage_link_id, samsung_storage_link_id, xiaomi_storage_link_id, oppo_storage_link_id, and vivo_storage_link_id are present.

integer
nullable
Example
16
destination_url

Must be a valid URL. Must not be greater than 1000 characters.

string
nullable
Example
http://bailey.com/
Media type application/json
object
data
object
id
integer
name
string
link
string
impression_link
string
destination_url
string
android_app_id
string
nullable
ios_app_id
string
nullable
huawei_app_id
string
nullable
samsung_app_id
string
nullable
xiaomi_app_id
string
nullable
oppo_app_id
string
nullable
vivo_app_id
string
nullable
custom_app_id
string
nullable
android_storage_link_id
string
nullable
ios_storage_link_id
string
nullable
huawei_storage_link_id
string
nullable
samsung_storage_link_id
string
nullable
xiaomi_storage_link_id
string
nullable
oppo_storage_link_id
string
nullable
vivo_storage_link_id
string
nullable
custom_storage_link_id
string
nullable
applications
Array
partners_single_links
Array<object>
object
partner_id
integer
partner_name
string
single_link
string
impression_link
string
created_at
string
updated_at
string
Example
{
"data": {
"id": 93,
"name": "Quos velit et.",
"link": "https://trk.affattr.com/sl/129b23?clickid={clickid}&pid={pid}",
"impression_link": "https://trk.affattr.com/sl/imp/129b23?clickid={clickid}&pid={pid}",
"destination_url": "https://gaylord.com/modi-deserunt-aut-ab-provident-perspiciatis.html",
"android_app_id": null,
"ios_app_id": null,
"huawei_app_id": null,
"samsung_app_id": null,
"xiaomi_app_id": null,
"oppo_app_id": null,
"vivo_app_id": null,
"custom_app_id": null,
"android_storage_link_id": null,
"ios_storage_link_id": null,
"huawei_storage_link_id": null,
"samsung_storage_link_id": null,
"xiaomi_storage_link_id": null,
"oppo_storage_link_id": null,
"vivo_storage_link_id": null,
"custom_storage_link_id": null,
"applications": [],
"partners_single_links": [
{
"partner_id": 1,
"partner_name": "S.H.I.E.L.D",
"single_link": "https://trk.affattr.com/sl/129b23?clickid={clickid}&pid=1",
"impression_link": "https://trk.affattr.com/sl/imp/129b23?clickid={clickid}&pid=1"
}
],
"created_at": "2026-11-25T12:56:09Z",
"updated_at": "2026-11-25T12:56:09Z"
}
}