Repositories API -> Repositories -> createrepository
external_document