Version 1
Connector Overview: This page documents all 41 endpoints for the Airincconnector v1.
GET
Assets: /assets
Get a list of assets.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
The max number of assets to return in the response |
|
|
Cursor to the next page of assets |
|
|
The parent board ID of the assets to return |
|
|
Filter assets by attached tags. If multiple tag=value pairs are provided, only assets with all specified tags will be included. |
|
|
N/A |
GET
Assets: /assets/:assetId
Get an asset
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
the id of the asset |
|
|
N/A |
GET
Assets: /assets/:assetId/boards
Get the list of parent boards of an asset
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
The max number of parent boards to return in the response |
|
|
Cursor to the next page of parent boards |
|
|
A boolean flag to include custom fields with the results (default: false) |
|
|
the id of the asset |
|
|
N/A |
PUT
Assets: /assets/:assetId/customfields/:customFieldId
Set custom field value(s) on an asset
Body
-
values - an array of objects containing the id of the custom field value to set (used for
single-selectandmulti-select) -
value - a string containing the value to set (used for
plain-textanddate)
To unset a custom field on an asset, set the relavant property above to null
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
the id of the asset |
|
|
the id of the custom field |
|
|
N/A |
GET
Assets: /assets/:assetId/versions
Get a list of asset versions associated with an asset.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
The id of the asset |
|
|
N/A |
GET
Assets: /assets/:assetId/versions/:versionId
Get an asset version associated with an asset
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
the id of the asset |
|
|
the id of the version |
|
|
N/A |
PATCH
Assets: /assets/:assetId/versions/:versionId
Update an asset version
Body
-
title - the title of the version
-
description - the description of the version
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
the id of the asset |
|
|
the id of the version |
|
|
N/A |
GET
Assets: /assets/:assetId/versions/:versionId/download
Get the download URL of an asset version
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
the id of the asset |
|
|
the id of the version |
|
|
N/A |
POST
Assets: /assets/:assetId/versions/:versionId/tags
Add one or more tags to an asset version
Body
-
id - the id of the tag to add to the version
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
the id of the asset |
|
|
the id of the version |
|
|
N/A |
DELETE
Assets: /assets/:assetId/versions/:versionId/tags/:tagId
Delete a tag from an asset version
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
the id of the asset |
|
|
the id of the version |
|
|
the id of the tag |
|
|
N/A |
DELETE
Assets: /assets/:assetId1
Delete an asset
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
GET
Boards: /boards
Get the list of boards defined in an Air workspace.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
Free text board name search filter |
|
|
Limits the number of boards items to return in the response |
|
|
Cursor returned in the previous page of responses used to get the next page of results |
|
|
Used when navigating immediate child sub boards in a board hierarchy |
|
|
N/A |
POST
Boards: /boards
Create a board at the top-level of the workspace or as a child of another board
Body
-
title - the title of the board
-
description - the description of the board
-
parentBoardId (optional) - the id of the parent board that this board will be a child of
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
GET
Boards: /boards/:boardId
Get a board
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
the id of the board |
|
|
N/A |
POST
Boards: /boards/:boardId/assets
Associates one or more assets to a board
Body
-
assetIds - an array of assetIds to associate with the board
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
DELETE
Boards: /boards/:boardId/assets/:assetId
Removes an asset from a board
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
the id of the board |
|
|
the id of the asset |
|
|
N/A |
PUT
Boards: /boards/:boardId/customfields/:customFieldId
Assign value(s) for a custom field on a board
Body
-
values - a list of objects with the id of the value to be set on the board for the custom field (used with
single-selectandmulti-selectcustom fields) -
value - the string value to be set for the custom field on the board (used with
plain-textanddatecustom fields)
To clear
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
the id of the board |
|
|
the id of the custom field |
|
|
N/A |
GET
Boards: /boards/:boardId/guests
Get the list of guests of the board.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
(optional) to filter with email |
|
|
the id of the board |
|
|
N/A |
POST
Boards: /boards/:boardId/guests
Add a guest to the board.
Body
-
email - email address of the user to be added as guest
-
roleId - id of the role to be associated with the guest
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
the id of the board |
|
|
N/A |
PATCH
Boards: /boards/:boardId/guests/:guestId
Change the role of a guest.
Body
-
roleId - id of the role to be associated with the guest
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
the id of the board |
|
|
the id of the guest |
|
|
N/A |
DELETE
Boards: /boards/:boardId/guests/:guestId1
Remove a guest from the board.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
the id of the board |
|
|
the id of the guest |
|
|
N/A |
PATCH
Boards: /boards/:boardId1
Update one or more properties on a board
Body
-
title - the title of the board
-
description - the description of the board
-
parentBoardId - the parent board this board is a child of
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
the id of the board |
|
|
N/A |
DELETE
Boards: /boards/:boardId2
Delete a board and any assets that are only contained in this board or its direct descendant boards.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
the id of the board |
|
|
N/A |
GET
Custom Fields: /customfields
List custom fields
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
Free text search for custom field names matching criteria |
|
|
The number of records returned |
|
|
The cursor returned to from previous page of results |
|
|
N/A |
POST
Custom Fields: /customfields
Create a custom field
Body
-
name - the name of the custom field
-
description - the description of the custom field
-
type - the type of the custom field
-
values - the values of a
single-selectormulti-selectcustom field
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
GET
Custom Fields: /customfields/:customFieldId
Get a custom field
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
The id of the custom field |
|
|
N/A |
POST
Custom Fields: /customfields/:customFieldId:/values
Add a new value to a single-select or multi-select custom field.
Body
-
name - the name of the custom field value
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
the id of the custom field |
|
|
N/A |
PATCH
Custom Fields: /customfields/:customFieldId:/values/:valueId
Update one or more properties on a value
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
the id of the custom field |
|
|
the id of the custom field value |
|
|
N/A |
DELETE
Custom Fields: /customfields/:customFieldId:/values/:valueId1
Delete a value off of a custom field
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
the id of the custom field |
|
|
the id of the custom field value to delete |
|
|
N/A |
PATCH
Custom Fields: /customfields/:customFieldId:1
Update one or more properties on a custom field
Body
-
name - the name of the custom field
-
description - the description of the custom field
\*type is immutable due to workflows being built on top of custom fields
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
The id of the custom field to update |
|
|
N/A |
DELETE
Custom Fields: /customfields/:customFieldId:2
Delete a custom field
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
The id of the custom field to update |
|
|
N/A |
POST
Imports: /imports
Create an import of an asset or asset version from a public URL.
Request Body
-
sourceUrl- the URL to get the file content. The URL needs to be publicly accessible. -
fileName(optional) - the name of the file. If not provided then it will be determined from the URL. -
ext(optional) - the extension of the file. If not provided then the ext will be pulled from the URL or defaulted to.file -
recordedAt(optional) - when the file was created. If not provided the servers current time will be used. -
assetId(optional) - the parent asset to create a new version for this file under. -
parentBoardId(optional) - the parent board to create the asset under. -
customFields(optional) - the list of custom fields and values to assign to the asset. -
tags(optional) - the list of tags to assign to the asset version.Response
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
GET
Imports: /imports/:importId/status
Retrieve the status of a specific import by providing the import ID in the URL.
Request
-
Method: GET
-
URL:
https://api.air.inc/v1/imports/:importId/status
Response
The body of the response will contain a JSON object with "status" and also "error" if the import is failed.
-
status:
-
pending - the import is waiting to be scheduled.
-
inProgress - the import is in progress.
-
failed - the import has failed.
-
succeeded - the import completed.
-
error: An object containing the error type and message if the import failed.
-
SOURCE_FILE_NOT_FOUND - the file is not found from source Url when executing task.
-
SOURCE_URL_BLOCKED - the source URL is to be blocked by the block rules.
-
SOURCE_URL_INVALID - the file URL returns 4xx, 5xx errors.
-
PROCESS_TIMED_OUT - exceeded the maximum amount of time allowed
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
GET
Roles: /roles
Get the list of guest roles available in a workspace.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
(required) to filter the roles by type |
|
|
N/A |
GET
Tags: /tags
List tags in the workspace
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
Free text search for tag names matching criteria |
|
|
The number of records returned |
|
|
The cursor returned to from previous page of results |
|
|
N/A |
POST
Tags: /tags
Create a new tag
Body
-
name - the name of the tag
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
PATCH
Tags: /tags/:tagId
Update one or more properties on a tag
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
the id of the tag |
|
|
N/A |
DELETE
Tags: /tags/:tagId1
Delete a tag
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
the id of the tag |
|
|
N/A |
POST
Uploads: /uploads
Upload an asset to a workspace
Body
-
fileName - the name of the file
-
ext - the extension of the file
-
size - the size of the file
-
mime - the mime of the file
-
recordedAt - when the file was created
-
parentBoardId (optional) - the parent board to create the asset under
-
assetId (optional) - the parent asset to create a new version for this file under
-
customFields (optional) - the list of custom fields and values to assign to the asset
-
tags (optional) - the list of tags to assign to the asset version
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
POST
Uploads: uploads/completeMultipart
Complete a large file upload
Body
-
multiPartUploadId - the upload id returned from
POST /uploads -
key - the key returned from
POST /uploads -
parts - an array of objects containing the etag (retuned from file upload) and partNumber for each chunk
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
POST
Uploads: uploads/uploadPart
Create a part upload url
Body
-
multiPartUploadId - upload id returned from
POST /uploads -
key - key returned from
POST /uploads -
partNumber - the number associated with the chunk being uploaded
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |