ラベル更新

Prev Next
Patch
/api/labels/{label_id}

ラベル情報を更新します。

Security
API Key: ApiKeyAuth
Header parameter nameAuthorization

認証キーとなるAPI KEYをAuthorization: Token {{API KEY}}の形式でヘッダーにセットします。
API KEYがabc123の場合は、Authorization: Token abc123とします。
API KEYの作成方法は、TROCCO API KEYの作成を参照ください。

Path parameters
label_id
integer (int64) Required

ラベルID

Body parameters
object
name
string

ラベル名です。

Examplefavorite
description
string

メモです。

Exampleお気に入り
color
string

ラベルの色です。

Example#e86115
Responses
200

更新したラベルの詳細を返します。

object
id
integer (int64)

ラベルIDです

Example1
name
string

ラベル名です。

Examplefavorite
description
string | null

メモです。

Exampleお気に入り
color
string

ラベルの色です。

Example#e86115
created_at
string

ラベル作成日時です。

Example2023-08-23T03:00:00.000+09:00
updated_at
string

ラベルの更新日時です。

Example2023-08-23T03:00:00.000+09:00
400

/api系の共通エラーレスポンス

object
message
string
Example不正なリクエストです。
401

認証エラー

object
message
string
Exampleアカウント登録もしくはログインしてください。
404

指定したIDが存在しません。