# Use a shared item in this project

`POST /org-library/items/{id}/use` · Rivier · workspace

Use a shared item in this project: a copy that remembers where it came from. With refresh, bring an earlier copy up to the latest version.

- Scope: workspace:write
- Graphql: Mutation.workspaceOrgLibraryUse
- Sdk: workspace.orgLibrary.use
- Cli: workspace org library use

## Parameters

- `id` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "refresh": {
      "type": "boolean"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    }
  },
  "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/org-library/items/{id}/use' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "refresh": false,
  "name": "string"
}'
```
