Lock a content type
POST
/api/content/management/types/{id}/lock
const url = 'https://example.com/api/content/management/types/example/lock';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
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://example.com/api/content/management/types/example/lock \ --header 'Authorization: Bearer <token>'Locks a content type to prevent modifications
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
Type ID
string
Responses
Section titled “Responses”Type locked successfully