---
title: "Place a Library artifact in a workspace"
method: PATCH
path: "/library/artifacts/{id}/workspace"
---

# Place a Library artifact in a workspace

`PATCH /library/artifacts/{id}/workspace`

## Request

- Base URL: `https://api.agentsky.dev/v1`
- URL: `https://api.agentsky.dev/v1/library/artifacts/{id}/workspace`
- Auth: HTTP bearer

Place the caller's own artifact in a workspace they belong to (by its key), or with null take it back to them alone.

## Path parameters

- `id` string, required

## Request body

- object
  - `workspace` string, nullable, required
  - `sharingRevision` string

## Response `200`

OK

- object

## Other responses

- `400`: Error — { error: { code, message } }
- `401`: Error — { error: { code, message } }
- `403`: Error — { error: { code, message } }
- `404`: Error — { error: { code, message } }
- `default`: Error — { error: { code, message, request_id } }

## Changes

- **2026-11-02** `e5e8f0229a99`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/agentsky/apis/agentsky-developer-api/changes/library/artifacts/:id/workspace/patch.md)

---

[API](https://skmtc.dev/agentsky/apis/agentsky-developer-api.md) - [All operations](https://skmtc.dev/agentsky/apis/agentsky-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agentsky/apis/agentsky-developer-api/revisions/0d435187cd55?raw)
