/Journey/{id}/copy
POST
/Journey/{id}/copy
const url = 'https://api.chatfood.app/Journey/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/copy';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json-patch+json'}, body: '{ "name": "example", "copyAudience": true, "copySteps": true }'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.chatfood.app/Journey/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/copy \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json-patch+json' \ --data '{ "name": "example", "copyAudience": true, "copySteps": true }'Authorizations
Seção intitulada “Authorizations”Parameters
Seção intitulada “Parameters”Path Parameters
Seção intitulada “Path Parameters”id
required
string format: uuid
Request Body
Seção intitulada “Request Body”object
name
string
copyAudience
boolean
copySteps
boolean
Examplegenerated
{ "name": "example", "copyAudience": true, "copySteps": true}object
name
string
copyAudience
boolean
copySteps
boolean
Examplegenerated
{ "name": "example", "copyAudience": true, "copySteps": true}object
name
string
copyAudience
boolean
copySteps
boolean
Examplegenerated
{ "name": "example", "copyAudience": true, "copySteps": true}object
name
string
copyAudience
boolean
copySteps
boolean
Examplegenerated
{ "name": "example", "copyAudience": true, "copySteps": true}Responses
Seção intitulada “Responses”OK