Script to execute rest command

I would like to create a simple script (or other) that I can send to lock my computer. I have the rest command created in rests.yaml. I created the below, but it does not execute. What is the proper syntax for this?

REST:

computer_lock:
  url: 'https://autoremotejoaomgcd.appspot.com/sendmessage?key=...message=messages=:=computer_lock'

Script:

lock_computer:
  sequence:
  - service: rest_command.computer_lock