# Workspace resource move

`POST /projects/{projectId}/resources/{type}/{rid}/move` · Rivier · workspace

Move a resource to another project of the same organisation (an owner or an admin of the organisation; a person, never a key).

- Scope: workspace:write
- Sdk: workspace.resource.move
- Cli: workspace resource move

## Parameters

- `projectId` (path, required), string
- `type` (path, required), string
- `rid` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "toProject": {
      "type": "string",
      "format": "uuid"
    }
  },
  "required": [
    "toProject"
  ],
  "additionalProperties": false
}
```

## Responses

- `200`: 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/projects/{projectId}/resources/{type}/{rid}/move' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "toProject": "string"
}'
```
