v1
Double column
API
CLI
JS Client

Services /

Resume service

Resumes the given service. Optionally takes instances to resume with a given number of instances.

Required permission

Project > Services > General > Update

Path parameters

    • projectId

      string required

      ID of the project

    • serviceId

      string required

      ID of the service

Request body

  • {object}
    • instances

      integer

      The number of instances to scale the service to upon resuming

Response body

  • {object}

    Response object.

    • data

      {object} required

      Result data.

    API
    CLI
    JS Client

    POST /v1/projects/{projectId}/services/{serviceId}/resume

    Example request

    Request body

    curl
    curl --header "Content-Type: application/json" \
      --header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
      --request POST \
      --data '{"instances":1}' \
      https://api.northflank.com/v1/projects/{projectId}/services/{serviceId}/resume

    Example response

    200 OK

    The operation was performed successfully.

    JSON

    {
      "data": {}
    }

    Example response

    409 Conflict

    The service could not be resumed as it is already paused.

    © 2022 Northflank Ltd. All rights reserved.