ラベル作成
    • PDF

    ラベル作成

    • PDF

    Article summary

    Post
    /api/labels

    新規ラベルを作成して招待メールを送信します。

    Security
    API Key
    Header parameter nameAuthorization

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

    Body parameters
    object
    name
    string Required

    ラベル名です。

    Examplefavorite
    description
    string

    メモです。

    Exampleお気に入り
    color
    string Required

    ラベルの色です。

    Example#e86115
    Responses
    201

    作成したラベルの詳細を返します。

    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
    error
    string
    Exampleアカウント登録もしくはログインしてください。
    404

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


    Was this article helpful?