v1
Double column
API
CLI
JS Client

Services /

Set service Docker CMD override

Sets the Docker CMD override for the given service.

Required permission

Project > Services > Deployment > Update Deployment

Path parameters

    • projectId

      string required

      ID of the project

    • serviceId

      string required

      ID of the service

Request body

  • {object}
    • cmdOverride

      string required

      The CMD to run, or null to disable the override.

Response body

  • {object}

    Response object.

    • data

      {object} required

      Result data.

    API
    CLI
    JS Client

    POST /v1/projects/{projectId}/services/{serviceId}/cmd-override

    Example request

    Request body
    curl
    curl --header "Content-Type: application/json" \
      --header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
      --request POST \
      --data '{"cmdOverride":"nginx -g"}' \
      http://api.northflank.com/v1/projects/{projectId}/services/{serviceId}/cmd-override

    Example response

    200 OK

    The operation was performed successfully.

    JSON

    {
      "data": {}
    }

    © 2022 Northflank Ltd. All rights reserved.