Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Latest commit

 

History

History
55 lines (33 loc) · 901 Bytes

label.md

File metadata and controls

55 lines (33 loc) · 901 Bytes

FORMAT: 1A

Entity Label [/api/v1.1/entity/{entity_id}/label]

Retrieve Entity Label [GET]

  • Headers

      Authorization: <api_key>
    

Response 200 (application/json)

    {
        "labels" : [
            {
                "css_class" : ".updating",
                "name" : "Em actualização",
                "id" : "449c7578-acb2-44aa-b858-4de78900a4b1"
            },
            {
                "css_class" : ".live",
                "name" : "Em directo",
                "id" : "2fd5a34f-02ee-496b-8aba-9be386eb6031"
            }
        ]
    }

Add Label [POST]

  • Headers

      Authorization: <api_key>
    
  • Body

      {
          "name": "label name",
          "css_class": "css class"
      }
    

Response 200 (application/json)

    {
        "ok": 1,
        "id": "label id"
    }