v1
Double column
API
CLI
JS Client

Services /

Edit service build arguments

Sets the build arguments for the given service.

Required permission

Project > Services > Configuration > Update Build Parameters

Path parameters

    • projectId

      string required

      ID of the project

    • serviceId

      string required

      ID of the service

Request body

  • {object}
    • buildParameters

      {object} required

      An object containing the all of the build arguments to set for the service

    Response body

    • {object}

      Response object.

      • data

        {object} required

        Result data.

      API
      CLI
      JS Client

      POST /v1/projects/{projectId}/services/{serviceId}/build-arguments

      Example request

      Request body

      curl
      curl --header "Content-Type: application/json" \
        --header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
        --request POST \
        --data '{"buildParameters":{"ARGUMENT_1":"abcdef","ARGUMENT_2":"12345"}}' \
        https://api.northflank.com/v1/projects/{projectId}/services/{serviceId}/build-arguments

      Example response

      200 OK

      The operation was performed successfully.

      JSON

      {
        "data": {}
      }

      © 2022 Northflank Ltd. All rights reserved.