Creation of multiple Bamboo plan variables using REST API with a single command

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Unresolved
    • None
    • Component/s: API
    • None
    • 0
    • 1

      There is a need to create multiple plan variable in Bamboo using a single curl command.

      The requirement is for similar command like this to work

      curl -u username:password --request POST \
      --url 'http://localhost:8085/rest/api/latest/plan/{PLAN_KEY}/variables/' \
      --header 'Accept: application/json' \
      --header 'Content-Type: application/json' \
      --data '{
      "name": "VAR1",
      "value": "Value1",
      "name": "VAR2",
       "value": "Value2"
       }'
      
      This command should create two variables, VAR1 and VAR2
       

              Assignee:
              Unassigned
              Reporter:
              Mobolaji Koleowo (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: