agency-time

PATCH /v1/agency/time/projects/{projectId}

Rename, re-assign or archive a project.

すべての agency-time エンドポイント

認証

ベアラー トークンとして API キーを送信します。このエンドポイントでは仕様に特定の権限が記載されていないため、キーに必要な最小限の権限を付与し、推測するのではなくレスポンスを確認してください。

このエンドポイントは組織IDを受け付けません。お使いのキーによって所属する組織がすでに特定されており、レスポンスはその組織にスコープされます。

試してみる

アングルブラケット内のすべてをご自身の値に置き換え、キーのプレースホルダーをご利用中のダッシュボードのキーに置き換えてください。

curl -X PATCH https://api.zinndigital.com/v1/agency/time/projects/{projectId} \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{  }'

ログインしていますか?ダッシュボード内のAPIコンソールでは、実際の組織IDやお客様ご自身のキーが自動入力され、ライブAPIに対してリクエストが実行されるため、実際のレスポンスを確認することができます。 API コンソールでこのエンドポイントを開く

詳細

⛔ Archiving hides a project from the pickers; it never deletes it. Time already logged against it stays on the timesheet and on any invoice it reached, because a project is part of how that money was arrived at. Changing `client_id` re-points FUTURE work only — an entry denormalises its client at creation, so hours already logged stay attributed to the client they were done for.

パラメータ

名前タイプ必須これがその内容です
projectId (path)stringはい

リクエスト本文

名前タイプ必須これがその内容です
namestringいいえ
client_idstringいいえ
board_idstringいいえ
currencystringいいえ
archivedbooleanいいえ

返信

名前タイプ必須これがその内容です
idstringはい
namestringはい
client_idstringはいThe agency's client this work is for, in the agency invoicing suite. `null` means **internal** work — reported on, never invoiced.
board_idstringはいThe agency project board this work is run on, when there is one.
currencystringはいISO currency this project's work is billed in. On the project because an invoice has exactly one currency; a rate card in another currency is refused rather than converted.
archivedbooleanはい
created_atstringはい

このエンドポイントが返すエラー

401 · 403 · 404 · 422