Set default branch through API

Currently, according to the docs, it's only possible to set a default branch using the API, when creating a project for a specific user.

My usecase, however, dictates, that all projects created automatically are done so by POST /projects, which does not allow for me to set a default branch?

Is it possible to somehow update the project (PUT) later on, which is not documented?