# Bring in a project that is already at Praecise Cloud, by its name there

`POST /hosting/coder/projects/import/cloud` · Rivier · hosting

Bring in a project that is already at Praecise Cloud, by its name there: the newest source Praecise Cloud keeps for it (uploaded, or imported from GitHub) becomes the project's first checkpoint, as with an upload. Asked in the signed-in person's name: they must be able to deploy to the project, and its owner must have opened it to Rivier in the Praecise Cloud console. A project that was placed without its source is refused in Praecise Cloud's own sentence. Publishing afterwards places a new release of that same project.

- Scope: hosting:write
- Sdk: hosting.coderProject.importCloud
- Cli: hosting coder project import cloud

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "cloud": {
      "type": "string",
      "pattern": "^[a-z0-9][a-z0-9-]{0,62}$",
      "description": "The project's name at Praecise Cloud"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80,
      "description": "What to call it in Rivier; the Praecise Cloud name when left out"
    }
  },
  "required": [
    "cloud"
  ],
  "additionalProperties": false
}
```

## Responses

- `201`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/hosting/coder/projects/import/cloud' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "cloud": "string"
}'
```
