Skip to main contentAdd a component to a content type
Log in to add to favourites1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
existingContentType.fields.push({
"id":"movieRole",
"name": {
"en-GB":"Movie Role"
},
"dataType":"object",
"dataFormat":"component.movieRole",
"description": {
"en-GB":"The movie Role"
}
});
client.contentTypes.update(existingContentType)
.then(result => {
console.log('API call result: ', result);
})
.catch(error => {
console.log('API call fetch error: ', error);
});