Create a repository for a domain: empty, to push to, or as a copy of remote.A private remote over SSH needs a key the remote knows: put the private key in the home directory (for example with the file endpoints) and name it in key_file. For a private remote over https, put a read-only access token in the address (https://user:token@host/owner/repository.git); it is stored on the hosting server.Only https:// and ssh:// addresses and the SSH form git@host:path are accepted.Cloning a large repository can take longer than the request may last; the call then answers 502 although the clone may still finish. After creating, set deploy_branch and deploy_folder with Change Git repository before the first deploy.Scope: hosting:write.
Request
Authorization
API Key
Add parameter in header
API-key
Example:
API-key: ********************
or
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.