Tarsheed
  1. Automation
Tarsheed
  • Auth
    • Create Account
      POST
    • Verifiy Email
      POST
    • Login
      POST
    • Resend Verfication Code
      POST
    • Forget Password Request
      POST
    • Forget password Verify Code
      POST
    • Reset Password
      PATCH
    • Login With Google
      POST
    • Login With Facebook
      POST
  • Users
    • Get all users
      GET
    • Get specific user
      GET
    • Delete user account
      DELETE
    • Update user data
      PUT
    • Change user password
      PUT
    • Get Recomendation
      GET
    • Get Avarage Cost For Spesfic User
      GET
    • Get The Power Saving Modes Settings
      GET
    • Update the Usage of the power saving mode
      PATCH
  • Reports
    • GetUserReport
      GET
  • Room
    • Create New Room
      POST
    • Update Room
      PATCH
    • Delete Room
      DELETE
    • Get Room Details
      GET
    • Get all Rooms for spesfic user
      GET
  • Device
    • Create New Device
    • Update Device
    • Delete Device
    • Get All Devices id For IOT System
    • Toggle Device Status
  • category
    • get all categories
  • Sensor
    • Create New Sensor
    • Update Sensor
    • Delete Sensor
    • Get All Sensor For Spesfic user
  • Automation
    • Add New Automation
      POST
    • Get all Automation for Spesfic User
      GET
    • Delete Spesfic Automation
      DELETE
    • Update Spesfic Automation
      PATCH
    • Apply Automation Manually
      POST
  • payment
    • Pay
  • Notification
    • Get notification
    • Mark as Read
    • Get notification Copy Copy
  • text-chat
  1. Automation

Update Spesfic Automation

Developing
PATCH
/automation/update/{automationId}
this endpoint for update spesfic automation

Request

Path Params

Header Params

Body Params application/json

Example
{
    "triggers": [
        {
            "type": "string",
            "sensorId": "string",
            "value": "string",
            "time": 0
        }
    ],
    "actions": [
        {
            "type": "string",
            "data": {
                "title": "string",
                "message": "string",
                "deviceId": "string",
                "state": "string"
            }
        }
    ],
    "conditions": [
        {
            "type": "string",
            "deviceId": "string",
            "state": "string"
        }
    ]
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH '/automation/update/' \
--header 'Authorization: token' \
--header 'Content-Type: application/json' \
--data-raw '{
    "triggers": [
        {
            "type": "string",
            "sensorId": "string",
            "value": "string",
            "time": 0
        }
    ],
    "actions": [
        {
            "type": "string",
            "data": {
                "title": "string",
                "message": "string",
                "deviceId": "string",
                "state": "string"
            }
        }
    ],
    "conditions": [
        {
            "type": "string",
            "deviceId": "string",
            "state": "string"
        }
    ]
}'

Responses

🟢200Success
application/json
Body

Example
{}
Modified at 2025-04-25 13:07:39
Previous
Delete Spesfic Automation
Next
Apply Automation Manually
Built with