Navigation

    Home
    All Categories
    • KEEN Trail Camera
    • Top #ReolinkCaptures Awards
    • Announcements and News
    • Wishlist
    • #ReolinkTrial
    • Discussion About Products
    • Reolink Captures
    • Reolink Client & APP
    #ReolinkTrial
    Reolink Captures
    Log in to post
    Guest
    • Guest
    • Register
    • Login

    Learn More

    Reolink updates Learn More

    Meet Reolink at IFA 2024! Learn More

    Reolink Q&A Learn More

    API SetMask

    #ReolinkTrial
    api setmask
    2
    2
    273
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • user_850817435779236_850817435779236
      user_850817435779236 last edited by

      Hi,

      I try to use the "SetMask" command by API.
      The camera is in the NVR's channel 0.
      I try to create and delete one mask with the API.

      The URL is something like that:

       https://*******************/api.cgi?cmd=SetMask&user=**************&password=*********


      I've created a mask with the client and I've tried to delete it wih the API...
      I've tried to create a mask with the API...
      I've tried a lot of commands like this :

      [{"cmd":"SetMask","action":0,"param":{"Mask":{"channel":0,"enable":0,"area":null}}}]
      [{"cmd":"SetMask","action":0,"param":{"Mask":{"channel":0,"enable":0,"area":[{"screen":{"height":0,"width":0},"block":{"x":0,"y":0,"width":0,"height":0}}]}}}]


      [{"cmd":"SetMask","action":0,"param":{"Mask":{"channel":0,"enable":1,"area":[{"screen":{"height":860,"width":1528},"block":{"x":0,"y":0,"width":1528,"height":860}}]}}}]
      [{"cmd":"SetMask","action":0,"param":{"Mask":{"channel":0,"enable":1,"area":[{"screen":{"height":860,"width":1528},"block":{"x":0,"y":0,"width":1528,"height":860}},{"screen":{"height":0,"width":0},"block":{"x":0,"y":0,"width":0,"height":0}},{"screen":{"height":0,"width":0},"block":{"x":0,"y":0,"width":0,"height":0}},{"screen":{"height":0,"width":0},"block":{"x":0,"y":0,"width":0,"height":0}}]}}}]


      I've received always the same response :

      [{"cmd":"SetMask","code":1,"error":{"detail":"set config failed","rspCode":-13}}]



      I've tried to change the "enable" parameter to 1 or 0, and it's the same.

      I don't understand how work this command.

      Can you help me please ?

      Thank you !

      Reply Quote
      Share
      • Share this Post
      • Facebook
      • Twitter
      • copy the link
        Copied!
      0
        • shuffleguitar_939789330129112
          shuffleguitar @user_850817435779236 last edited by

          Hi, geometry dash

          I try to use the "SetMask" command by API.
          The camera is in the NVR's channel 0.
          I try to create and delete one mask with the API.

          The URL is something like that:
           https://*******************/api.cgi?cmd=SetMask&user=**************&password=*********

          I've created a mask with the client and I've tried to delete it wih the API...
          I've tried to create a mask with the API...
          I've tried a lot of commands like this :

          [{"cmd":"SetMask","action":0,"param":{"Mask":{"channel":0,"enable":0,"area":null}}}]
          [{"cmd":"SetMask","action":0,"param":{"Mask":{"channel":0,"enable":0,"area":[{"screen":{"height":0,"width":0},"block":{"x":0,"y":0,"width":0,"height":0}}]}}}]

          [{"cmd":"SetMask","action":0,"param":{"Mask":{"channel":0,"enable":1,"area":[{"screen":{"height":860,"width":1528},"block":{"x":0,"y":0,"width":1528,"height":860}}]}}}]
          [{"cmd":"SetMask","action":0,"param":{"Mask":{"channel":0,"enable":1,"area":[{"screen":{"height":860,"width":1528},"block":{"x":0,"y":0,"width":1528,"height":860}},{"screen":{"height":0,"width":0},"block":{"x":0,"y":0,"width":0,"height":0}},{"screen":{"height":0,"width":0},"block":{"x":0,"y":0,"width":0,"height":0}},{"screen":{"height":0,"width":0},"block":{"x":0,"y":0,"width":0,"height":0}}]}}}]

          I've received always the same response :

          [{"cmd":"SetMask","code":1,"error":{"detail":"set config failed","rspCode":-13}}]


          I've tried to change the "enable" parameter to 1 or 0, and it's the same.

          I don't understand how work this command.

          Can you help me please ?

          Thank you !

          It looks like the SetMask error (set config failed, rspCode: -13) usually means there's an issue with the request format or parameters. Make sure your JSON includes the correct channel, enable flag, and properly defined mask area. Also, double-check your camera firmware is up to date.

          Reply Quote
          Share
          • Share this Post
          • Facebook
          • Twitter
          • copy the link
            Copied!
          0
          View 0 replies
        • First post
          Last post
        All Categories
        Announcements and News Reolink Client & APP Discussion About Products #ReolinkTrial Reolink Captures Wishlist KEEN Trail Camera
        Never miss Reolink hot deals, news, and updates tailored for you.

        Thanks for your subscription!

        Please enter a valid email address.

        Oops… Something went wrong. Please try again later.

        You are already subscribed to this email list. :)

        Submission failed. Please try again later.

        Reolink Store|Support|About Us|Privacy Policy|Terms and Conditions

        Copyright 2025 © Reolink All Rights Reserved.

        Welcome Back!

        Hi there! Join the Commnunity to get all the latest news, tips and more!

        Join Now