Organizations with the BigML Dashboard

6.2 API ID

In this section of your organization settings, you can find the API ID of the organization (see Figure 6.13 ). You will need it when you are using the API to create projects in the organization.

\includegraphics[]{images/api-id}
Figure 6.13 Organization API ID

To create a project in an organization, you need to set an additional parameter in the query string apart from the BIGML_AUTH that contains your authentication credentials (the username and api_id):

curl
"https://bigml.io/project?$BIGML_AUTH;organization=organization/5a68d2d79841fa315600000b\
      -X POST \
      -H 'content-type: application/json' \
      -d '{"name": "My first project"}'

To create a resource in an organization project, you do not need to include the organization id anymore; you need to include the project id in the request:

curl
"https://bigml.io/dataset?$BIGML_AUTH;project=project/3d45f3t456t67000987hg67\
      -X POST \
      -H 'content-type: application/json' \
      -d '{"source": "source/5a708d3b9841fa25b5000000"}'

For more information on using organizations through the BigML API, please refer to the organization REST API documentation.