PUT
/v2/projects/{projectId}/publishingSet a project's publishing state
Changes whether a project is public or private. Set public to true to make the project discoverable and open to community suggestions, or false to make it private; only the organization owner or a server admin can change this setting.
projectIdintegerrequired
The integer identifier of the project whose publishing state to change.
Publishing state to apply to the project.
publicbooleanrequired
Whether the project should be public (discoverable and open to community suggestions)
200Returns the updated project, including its `id`, `name`, and `public` publishing state.
avatarobjectoptional
baseLanguageobjectoptional
computedPermissionobjectrequired
defaultNamespaceobjectoptional
descriptionstringoptional
directPermissionobjectoptional
icuPlaceholdersbooleanrequired
Whether to disable ICU placeholder visualization in the editor and it's support.
idintegerrequired
namestringrequired
organizationOwnerobjectoptional
organizationRolestringoptional
publicbooleanrequired
Whether the project is public — discoverable and open to community suggestions
slugstringoptional
suggestionsModestringrequired
Suggestions for translations
translationProtectionstringrequired
Level of protection of translations
useBranchingbooleanrequired
useNamespacesbooleanrequired
useQaChecksbooleanrequired
400Returned when `public` is missing or its value is invalid.
codestringrequired
paramsarray<object>optional
401Returned when the request is not authenticated.
codestringrequired
paramsarray<object>optional
403Returned when the authenticated user is not the organization owner or a server admin.
codestringrequired
paramsarray<object>optional
404Returned when the project cannot be found.
codestringrequired
paramsarray<object>optional
Error handling
A 400 is returned when public is missing or its value is invalid. A 401 is returned when the request is unauthenticated, and a 403 is returned when the authenticated user is not the organization owner or a server admin. A 404 is returned when the project cannot be found; the projectId path parameter must identify the project.