Update a casting call question
curl --request PATCH \
--url https://beta.creatorcore.co/api/v2/casting-calls/{id}/questions/{questionId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"question": "<string>",
"type": "text",
"required": false,
"rank": 49
}
'const options = {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({question: '<string>', type: 'text', required: false, rank: 49})
};
fetch('https://beta.creatorcore.co/api/v2/casting-calls/{id}/questions/{questionId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/casting-calls/{id}/questions/{questionId}"
payload = {
"question": "<string>",
"type": "text",
"required": False,
"rank": 49
}
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,
"question": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rank": 123,
"question": "<string>",
"type": "text",
"required": true
}
}Casting call questions
Update a casting call question
Updates a question’s prompt, type, or required flag. Changing the type of a question that already has submitted answers returns 409.
PATCH
/
api
/
v2
/
casting-calls
/
{id}
/
questions
/
{questionId}
Update a casting call question
curl --request PATCH \
--url https://beta.creatorcore.co/api/v2/casting-calls/{id}/questions/{questionId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"question": "<string>",
"type": "text",
"required": false,
"rank": 49
}
'const options = {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({question: '<string>', type: 'text', required: false, rank: 49})
};
fetch('https://beta.creatorcore.co/api/v2/casting-calls/{id}/questions/{questionId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/casting-calls/{id}/questions/{questionId}"
payload = {
"question": "<string>",
"type": "text",
"required": False,
"rank": 49
}
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,
"question": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rank": 123,
"question": "<string>",
"type": "text",
"required": true
}
}Authorizations
Body
application/json
Was this page helpful?