All URIs are relative to https://app.matroid.com
| Method | HTTP request | Description |
|---|---|---|
| apiV1DetectorsDetectorIdLabelsLabelIdDelete | DELETE /api/v1/detectors/{detectorId}/labels/{labelId} | Delete label |
| apiV1DetectorsDetectorIdLabelsLabelIdGet | GET /api/v1/detectors/{detectorId}/labels/{labelId} | Get label images |
| apiV1DetectorsDetectorIdLabelsLabelIdPatch | PATCH /api/v1/detectors/{detectorId}/labels/{labelId} | Update annotations |
| apiV1DetectorsDetectorIdLabelsPost | POST /api/v1/detectors/{detectorId}/labels | Create label with images |
| apiV1ImagesAnnotationsGet | GET /api/v1/images/annotations | Get annotations |
ApiV1DetectorsDetectorIdLabelsLabelIdDelete200Response apiV1DetectorsDetectorIdLabelsLabelIdDelete(detectorId, labelId)
Delete label
Requires the detector's `processing` field to be set to `false`.
import MatroidPublicApi from 'matroid_public_api';
let defaultClient = MatroidPublicApi.ApiClient.instance;
// Configure Bearer (JWT) access token for authorization: bearerAuth
let bearerAuth = defaultClient.authentications['bearerAuth'];
bearerAuth.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new MatroidPublicApi.LabelsApi();
let detectorId = "detectorId_example"; // String | Unique ID of the detector associated with the relevant label
let labelId = "labelId_example"; // String | Unique ID of the label to delete
apiInstance.apiV1DetectorsDetectorIdLabelsLabelIdDelete(detectorId, labelId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| detectorId | String | Unique ID of the detector associated with the relevant label | |
| labelId | String | Unique ID of the label to delete |
ApiV1DetectorsDetectorIdLabelsLabelIdDelete200Response
- Content-Type: Not defined
- Accept: application/json
ApiV1DetectorsDetectorIdLabelsLabelIdGet200Response apiV1DetectorsDetectorIdLabelsLabelIdGet(detectorId, labelId)
Get label images
Retrieves images for a given label
import MatroidPublicApi from 'matroid_public_api';
let defaultClient = MatroidPublicApi.ApiClient.instance;
// Configure Bearer (JWT) access token for authorization: bearerAuth
let bearerAuth = defaultClient.authentications['bearerAuth'];
bearerAuth.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new MatroidPublicApi.LabelsApi();
let detectorId = "detectorId_example"; // String | Unique ID of the detector associated with the relevant label
let labelId = "labelId_example"; // String | Unique ID of the label for which to retrieve images
apiInstance.apiV1DetectorsDetectorIdLabelsLabelIdGet(detectorId, labelId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| detectorId | String | Unique ID of the detector associated with the relevant label | |
| labelId | String | Unique ID of the label for which to retrieve images |
ApiV1DetectorsDetectorIdLabelsLabelIdGet200Response
- Content-Type: Not defined
- Accept: application/json
ApiV1DetectorsDetectorIdLabelsLabelIdDelete200Response apiV1DetectorsDetectorIdLabelsLabelIdPatch(detectorId, labelId, apiV1DetectorsDetectorIdLabelsLabelIdPatchRequest)
Update annotations
Updates annotations for the specified images
import MatroidPublicApi from 'matroid_public_api';
let defaultClient = MatroidPublicApi.ApiClient.instance;
// Configure Bearer (JWT) access token for authorization: bearerAuth
let bearerAuth = defaultClient.authentications['bearerAuth'];
bearerAuth.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new MatroidPublicApi.LabelsApi();
let detectorId = "detectorId_example"; // String | Unique ID of the detector
let labelId = "labelId_example"; // String | Unique ID of the label
let apiV1DetectorsDetectorIdLabelsLabelIdPatchRequest = new MatroidPublicApi.ApiV1DetectorsDetectorIdLabelsLabelIdPatchRequest(); // ApiV1DetectorsDetectorIdLabelsLabelIdPatchRequest |
apiInstance.apiV1DetectorsDetectorIdLabelsLabelIdPatch(detectorId, labelId, apiV1DetectorsDetectorIdLabelsLabelIdPatchRequest, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| detectorId | String | Unique ID of the detector | |
| labelId | String | Unique ID of the label | |
| apiV1DetectorsDetectorIdLabelsLabelIdPatchRequest | ApiV1DetectorsDetectorIdLabelsLabelIdPatchRequest |
ApiV1DetectorsDetectorIdLabelsLabelIdDelete200Response
- Content-Type: application/json
- Accept: application/json
ApiV1DetectorsDetectorIdLabelsPost200Response apiV1DetectorsDetectorIdLabelsPost(detectorId, name, imageFiles, bboxes, opts)
Create label with images
Asynchronously creates a label for a detector (sets `processing` to `true`). Requires the detector's `processing` field to be set to `false`.
import MatroidPublicApi from 'matroid_public_api';
let defaultClient = MatroidPublicApi.ApiClient.instance;
// Configure Bearer (JWT) access token for authorization: bearerAuth
let bearerAuth = defaultClient.authentications['bearerAuth'];
bearerAuth.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new MatroidPublicApi.LabelsApi();
let detectorId = "detectorId_example"; // String | ID of the detector
let name = "name_example"; // String | Name of the label
let imageFiles = ["null"]; // [File] | Array of image files to upload
let bboxes = [new MatroidPublicApi.ApiV1DetectorsDetectorIdLabelsLabelIdGet200ResponseImagesInnerTagsInnerBbox()]; // [ApiV1DetectorsDetectorIdLabelsLabelIdGet200ResponseImagesInnerTagsInnerBbox] |
let opts = {
'destination': "'images'" // String | Possible values: 'images', 'deselectedImages', 'negativeImages', or 'deselectedNegativeImages'
};
apiInstance.apiV1DetectorsDetectorIdLabelsPost(detectorId, name, imageFiles, bboxes, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| detectorId | String | ID of the detector | |
| name | String | Name of the label | |
| imageFiles | [File] | Array of image files to upload | |
| bboxes | [ApiV1DetectorsDetectorIdLabelsLabelIdGet200ResponseImagesInnerTagsInnerBbox] | ||
| destination | String | Possible values: 'images', 'deselectedImages', 'negativeImages', or 'deselectedNegativeImages' | [optional] [default to 'images'] |
ApiV1DetectorsDetectorIdLabelsPost200Response
- Content-Type: multipart/form-data
- Accept: application/json
ApiV1ImagesAnnotationsGet200Response apiV1ImagesAnnotationsGet(opts)
Get annotations
Requires the detector's `processing` field to be set to `false`. One of the three IDs listed below must be provided.
import MatroidPublicApi from 'matroid_public_api';
let defaultClient = MatroidPublicApi.ApiClient.instance;
// Configure Bearer (JWT) access token for authorization: bearerAuth
let bearerAuth = defaultClient.authentications['bearerAuth'];
bearerAuth.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new MatroidPublicApi.LabelsApi();
let opts = {
'detectorId': "detectorId_example", // String | ID of the detector to get annotations for
'labelIds': ["null"], // [String] | Array of label IDs to get annotations for
'imageId': "imageId_example" // String | ID of the image to get annotations for
};
apiInstance.apiV1ImagesAnnotationsGet(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| detectorId | String | ID of the detector to get annotations for | [optional] |
| labelIds | [String] | Array of label IDs to get annotations for | [optional] |
| imageId | String | ID of the image to get annotations for | [optional] |
ApiV1ImagesAnnotationsGet200Response
- Content-Type: Not defined
- Accept: application/json