# Hosting coder project import finish

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

Join the parts of a project sent in parts (at most 60 MB in all) and bring it in exactly as an upload in one request is brought in. The parts are removed once it is brought in or refused; a part that has not arrived is named so it can be sent again.

- Scope: hosting:write
- Sdk: hosting.coderProject.importFinish
- Cli: hosting coder project import finish

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "upload": {
      "type": "string",
      "format": "uuid",
      "description": "The identifier the parts were sent with"
    },
    "parts": {
      "type": "integer",
      "minimum": 1,
      "maximum": 8,
      "description": "How many parts were sent"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80,
      "description": "What the project is called in Rivier"
    }
  },
  "required": [
    "upload",
    "parts",
    "name"
  ],
  "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/finish' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "upload": "string",
  "parts": 0,
  "name": "string"
}'
```
