The Nextmv shift scheduling app on marketplace provides a low-code entry point to the Nextmv platform and is the recommended starting point when solving a shift scheduling problem. It is a pre-built app with out-of-the-box functionality available now on Nextmv Cloud.
Once you subscribe to the Nextmv shift-scheduling
app on marketplace, you can start running your model via the API.
After subscribing to the marketplace app, you are ready to run.
Note, all requests must be authenticated with Bearer Authentication. Make sure your request has a header containing your Nextmv Cloud API key, as such:
- Key:
Authorization
- Value:
Bearer <YOUR-API-KEY>
Use this endpoint to submit a run:
New application run.
Create new application run.
For the payload, use only the "input"
key, and you can submit an object similar to this one, which follows the input schema:
You can also specify "options"
in the payload, which will override the default options. All values must be a string
. Visit the options page for more information. This is a sample of options that can be passed:
Here is a curl
command that summarizes the request:
After the run is submitted, you will obtain a run_id
. To retrieve the results you can:
- Go to the
Runs
of the app and look for therun_id
in the table. Clicking on therun_id
will take you to the results page. - Use the endpoint below to get the results, using the
run_id
. You should use polling to query for the results. When you poll, the.metadata.status
of the result will shown the run status. A status ofsucceeded
means the run is complete and the results are available.
Get run result.
Get the result of a run.
Here is a curl
command that summarizes the request:
After running, a JSON
payload that follows the output schema, should have been returned with the solution, similar to this one:
๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐
You are all set to keep exploring!
Visit the options reference for detailed information on all the available options.