Is it possible to trigger workflows by V1 API token?

https://cci.xxx.com/api/v1.1/project/gh/myname/circleci-helloworld/tree/master?circle-token=f0a14b5a94f2c685abxxxxxxxxxxxxxxxxxx

workflows:
  version: 2
  build_and_test:
    jobs:
      - build
      - test:
          requires:
            - build

jobs:
  build:
    docker: 
      - image: circleci/node:4.8.2 
    steps:
      - checkout 
      - run: echo "hello world" 
  test:
    docker: 
      - image: circleci/node:4.8.2
    steps:
      - checkout 
      - run: echo "hello 2"

I was able to trigger a CircleCI project by V1 API token with the above request. However, only the “build” job is run by CircleCI, the “test” job was not run.

https://circleci.com/docs/2.0/api-job-trigger/
But in the above document it says

It is possible to trigger workflows with the CircleCI API: a singular workflow can be re-run, or you may trigger a pipeline which will run its subsequent workflows

What am I missing here?

Hi @svipul!

The v1.1 APIs are from a time when our domain model revolved around jobs. They cannot be used to interact with workflows are pipelines.

If you want to use workflows and pipelines, you have to use the v2 APIs. We strongly advise against using the v1.1 APIs, as they will eventually be deprecated.