Skip to content

Latest commit

 

History

History
125 lines (85 loc) · 2.45 KB

File metadata and controls

125 lines (85 loc) · 2.45 KB
title Update workspace asset
description Update workspace asset via Plane API. HTTP request format, parameters, scopes, and example responses for update workspace asset.
keywords plane, plane api, rest api, api integration, assets, update workspace asset

Update workspace asset

PATCH /api/v1/workspaces/{workspace_slug}/assets/{asset_id}/

Update generic asset after upload completion

Path Parameters

The unique identifier of the asset.

The workspace_slug represents the unique workspace identifier for a workspace in Plane. It can be found in the URL. For example, in the URL https://app.plane.so/my-team/projects/, the workspace slug is my-team.

Body Parameters

Whether the asset has been successfully uploaded

Scopes

assets:write

curl -X PATCH \
  "https://api.plane.so/api/v1/workspaces/my-workspace/assets/asset-uuid/" \
  -H "X-API-Key: $PLANE_API_KEY" \
  # Or use -H "Authorization: Bearer $PLANE_OAUTH_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "is_uploaded": true
}'
import requests

response = requests.patch(
    "https://api.plane.so/api/v1/workspaces/my-workspace/assets/asset-uuid/",
    headers={"X-API-Key": "your-api-key"},
    json={
      "is_uploaded": true
    }
)
print(response.status_code)
const response = await fetch("https://api.plane.so/api/v1/workspaces/my-workspace/assets/asset-uuid/", {
  method: "PATCH",
  headers: {
    "X-API-Key": "your-api-key",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    is_uploaded: true,
  }),
});
console.log(response.status);

No response body.