Juganu LMS API  V 3.0.0.5
Juganu Lighting Control API
Light Profile Management
Light Profile Management

Associate

Associate Light Profile to a Group.

    Definition/Term Description
    Request URL {{URL-Base}}/led/profiles/{idLP}/groups/{idGroup}
    Method POST
    Header Authorization *required Bearer token
    {idLP} *required Integer
    {idGroup} *required Integer
    URL Example Description Fields:
    "idGroup" = ID of Group.
    "idLP"= ID of the Light Profile.

    Steps:
    1.- invoke GET {{URL-Base}}/led/groups
    2.- Look at Response the group take the group you wanted
    3.- Take de "id" (Example=1)
    4.- invoke "Get all light profiles" 5.- Look at Response and take the id for Light Profile, for example "id"=2 6.- Put value of id like (idGroup)-step3- and put value for id Light Profile(idLP) -step5-
    {{URL-Base}}/led/profiles/2/groups/1
    Response application/json
    Example:
    "Done"

Get

Get List Light Profile Associated to a Group.

    Definition/Term Description
    Request URL {{URL-Base}}/led/profiles/groups
    Method GET
    Header Authorization *required Bearer token
    Response application/json
    Description Fields:
    "idLP"= ID of the Light Profile.
    "nameLP" = Name of the Light Profile.
    "typeLP" = This is ID of the catalogs(LightProfile Types).
    "idGroup" = ID of Group.
    "idGroup" = Name of the Group.


    Example:
    [
    { "idLP": 2, "nameLP": "Light Profile Daily-Events", "typeLP": 1, "idGroup": 1, "nameGroup": "Group 1" } ]

ReAssociate

ReAssociate Light Profile to a Group.

    Definition/Term Description
    Request URL {{URL-Base}}/led/profiles/{idLP}/groups/{idGroup}
    Method PUT
    Header Authorization *required Bearer token
    {idLP} *required Integer
    {idGroup} *required Integer
    URL Example Description Fields:
    "idGroup" = ID of Group.
    "idLP"= ID of the Light Profile.

    Steps:
    1.- invoke GET {{URL-Base}}/led/groups
    2.- Look at Response the group take the group you wanted
    3.- Take de "id" (Example=1)
    4.- invoke "Get all light profiles" 5.- Look at Response and take the id for Light Profile, for example "id"=2 6.- Put value of id like (idGroup)-step3- and put value for id Light Profile(idLP) -step5-
    {{URL-Base}}/led/profiles/2/groups/1
    Response application/json
    Example:
    "Done"

Delete

Delete Associate Light Profile to a Group.

    Definition/Term Description
    Request URL {{URL-Base}}/led/profiles/{idLP}/groups/{idGroup}
    Method DELETE
    Header Authorization *required Bearer token
    {idLP} *required Integer
    {idGroup} *required Integer
    Response application/json
    Description Fields:
    "idGroup" = ID of Group.
    "idLP"= ID of the Light Profile.


    Example:
    "Done"