Update a campaign module
curl --request PATCH \
--url https://beta.creatorcore.co/api/v2/campaigns/{cid}/modules/{mid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"name": "<string>",
"inputs": {},
"position": 1,
"showExternally": true
}
'const options = {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({name: '<string>', inputs: {}, position: 1, showExternally: true})
};
fetch('https://beta.creatorcore.co/api/v2/campaigns/{cid}/modules/{mid}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/campaigns/{cid}/modules/{mid}"
payload = {
"name": "<string>",
"inputs": {},
"position": 1,
"showExternally": True
}
headers = {
"Authorization": "Bearer <token>",
"X-CreatorCore-Organization-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"success": true,
"module": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"position": 123,
"showExternally": true,
"source": "system",
"moduleTypeKey": "<string>",
"orgModuleTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"inputs": {}
}
}Campaign modules
Update a campaign module
Updates module name, inputs, or position.
PATCH
/
api
/
v2
/
campaigns
/
{cid}
/
modules
/
{mid}
Update a campaign module
curl --request PATCH \
--url https://beta.creatorcore.co/api/v2/campaigns/{cid}/modules/{mid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"name": "<string>",
"inputs": {},
"position": 1,
"showExternally": true
}
'const options = {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({name: '<string>', inputs: {}, position: 1, showExternally: true})
};
fetch('https://beta.creatorcore.co/api/v2/campaigns/{cid}/modules/{mid}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/campaigns/{cid}/modules/{mid}"
payload = {
"name": "<string>",
"inputs": {},
"position": 1,
"showExternally": True
}
headers = {
"Authorization": "Bearer <token>",
"X-CreatorCore-Organization-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"success": true,
"module": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"position": 123,
"showExternally": true,
"source": "system",
"moduleTypeKey": "<string>",
"orgModuleTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"inputs": {}
}
}Authorizations
Body
application/json
Was this page helpful?