Help with new code

Hi all.

Can anyone point out to me what is wrong with this formatting?

I’m tearing my hair out

washer_start: 'curl --location --request POST ''https://api.smartthings.com/v1/devices/dfe8dba1-fe99-9897-c896-*****/commands'' 
--header ''Authorization: Bearer 8e3df9de-0445-4d37-afad-1111111'' 
--header ''Content-Type: text/plain'' 
--data-raw ''[
      {
          "capability":"washerOperatingState",
          "command":"setMachineState",
          "arguments":["run"]

  washer_pause: 'curl --location --request POST ''https://api.smartthings.com/v1/devices/dfe8dba1-fe99-9897-c896-*********/commands'' 
  header ''Authorization: Bearer 8e3df9de-0445-4d37-afad-11111111''
  header ''Content-Type: text/plain'' 
  data-raw ''[
      {
          "capability":"washerOperatingState",
          "command":"setMachineState",
          "arguments":["pause"]

washer_stop: 'curl --location --request POST ''https://api.smartthings.com/v1/devices/dfe8dba1-fe99-9897-c896-*******/commands'' 
--header ''Authorization: Bearer 8e3df9de-0445-4d37-afad-111111''
--header ''Content-Type: text/plain'' 
--data-raw ''[
      {
          "capability":"washerOperatingState",
          "command":"setMachineState",
          "arguments":["stop"]
    }
]'
    

The **** and the 11111 are to not show my full code in case that’s not the done thing in case people can use it to hack

Error : can not read a block mapping entry; a multiline key may not be an implicit key

washer_pause is indented whereas the others aren’t.

# Washing machine
washer_start: 'curl --location --request POST ''https://api.smartthings.com/v1/devices/dfe8dba1-fe99-9897-c896-14f6c92c7bec/commands'' 
--header ''Authorization: Bearer 8e3df9de-0445-4d37-afad-32114cbd9501'' 
--header ''Content-Type: text/plain'' 
--data-raw ''[
      {
          "capability":"washerOperatingState",
          "command":"setMachineState",
          "arguments":["run"]``

washer_pause: 'curl --location --request POST ''https://api.smartthings.com/v1/devices/dfe8dba1-fe99-9897-c896-14f6c92c7bec/commands'' 
  header ''Authorization: Bearer 8e3df9de-0445-4d37-afad-32114cbd9501''
  header ''Content-Type: text/plain'' 
  data-raw ''[
      {
          "capability":"washerOperatingState",
          "command":"setMachineState",
          "arguments":["pause"]

washer_stop: 'curl --location --request POST ''https://api.smartthings.com/v1/devices/dfe8dba1-fe99-9897-c896-14f6c92c7bec/commands'' 
--header ''Authorization: Bearer 8e3df9de-0445-4d37-afad-32114cbd9501'' 
--header ''Content-Type: text/plain'' 
--data-raw ''[
      {
          "capability":"washerOperatingState",
          "command":"setMachineState",
          "arguments":["stop"]
    }
]'

Still the same but I notice there are no – there

When I put – there, it makes no difference

Here and other places use " not ' followed by '

That made no difference

ile ‘configuration.yaml’ could not be parsed, it was referenced from path ‘configuration.yaml’.This file will be ignored. Error(s): - YAMLSyntaxError: All collection items must start at the same column - YAMLSemanticError: Multi-line single-quoted string needs to be sufficiently indented - YAMLSemanticError: Multi-line single-quoted string needs to be sufficiently indented - - And 9 more errors…

First 2 data-raw seem to be missing the

} and ]

But There may be more.

Still no luck

This is the error

File ‘configuration.yaml’ could not be parsed, it was referenced from path ‘configuration.yaml’.This file will be ignored. Error(s): - YAMLSemanticError: Multi-line single-quoted string needs to be sufficiently indented - YAMLSemanticError: Multi-line single-quoted string needs to be sufficiently indented - YAMLSemanticError: Multi-line single-quoted string needs to be sufficiently indented - - And 9 more errors…

And this is the code

shell_command:
# Washing machine
washer_start: 'curl --location --request POST "https://api.smartthings.com/v1/devices/dfe8dba1-fe99-9897-c896-999/commands"
--header "Authorization: Bearer 8e3df9de-0445-4d37-afad-999"
--header "Content-Type: text/plain"
--data-raw "[
      {
          "capability":"washerOperatingState",
          "command":"setMachineState",
          "arguments":["run"]
              }
]'
washer_pause: 'curl --location --request POST "https://api.smartthings.com/v1/devices/dfe8dba1-fe99-9897-c896-999/commands"
--header "Authorization: Bearer 8e3df9de-0445-4d37-afad-999"
--header "Content-Type: text/plain"
--data-raw "[
      {
          "capability":"washerOperatingState",
          "command":"setMachineState",
          "arguments":["pause"]
              }
]'
washer_stop: 'curl --location --request POST "https://api.smartthings.com/v1/devices/dfe8dba1-fe99-9897-c896-999/commands"
--header "Authorization: Bearer 8e3df9de-0445-4d37-afad-999"
--header "Content-Type: text/plain"
--data-raw "[
      {
          "capability":"washerOperatingState",
          "command":"setMachineState",
          "arguments":["stop"]
    }
]'
  

I am sorry but there are many issues with that yaml configuration.
Where did it come from?
Have you reviewed this?