Node 18 Deprecation
cc_b2c_target_info_partial_update
PATCH
https://cloud.mobify.com/api/cc/b2c/projects/{project_slug}/b2c-target-info/{target_slug}/
Edit a specified target's (environment's) connection to a B2C Commerce instance. If you pass in a list of site IDs, that list replaces the existing sites connected to the target.
Request
curl "https://cloud.mobify.com/api/cc/b2c/projects/{project_slug}/b2c-target-info/{target_slug}/" \
-X PATCH \
-H "content-type: application/json" \
-d '{
"instance_id": "aaaa_prd",
"sites": [
"DemoSite1",
"DemoSite2"
]
}'
Security
URI parameters
project_slug
string
Required
The project identifier.
target_slug
string
Required
The target identifier.
Body
Media type:
{
"instance_id": "aaaa_prd",
"sites": [
"DemoSite1",
"DemoSite2"
]
}
instance_id
string
ID of the B2C Commerce instance associated with the target
Maximum characters:
8
sites
union
Responses
{
"instance_id": "aaaa_prd",
"sites": [
"DemoSite1",
"DemoSite2"
]
}
Body
Media type:
application/json
instance_id
string
Required
ID of the B2C Commerce instance associated with the target
Maximum characters:
8
sites
union