Contents

Summary

Contains methods for working with contracts.

Application Identifier Use

This set of APIs uses a application identifier parameter, named appId and of type Int32, which specifies the corresponding application in which actions should be performed.

For the sake of brevity, it is omitted from the parameter list of the API methods below, but still needs to be included whenever there is an {appId} placeholder in the URL for the API method.

API Methods

POST https://services.dartmouth.edu/TDWebApi/api/{appId}/assets/contracts Copy URL

Creates a contract. This operation requires the permission to add and modify contracts.

Parameters

Returns

The created contract if the operation was successful.

Rate/Submission Limitations

Invocations of this method are rate-limited, with a restriction of 60 calls per IP address every 60 seconds.

GET https://services.dartmouth.edu/TDWebApi/api/{appId}/assets/contracts/{id} Copy URL

Gets a contract.

Parameters

Returns

Rate/Submission Limitations

Invocations of this method are rate-limited, with a restriction of 60 calls per IP address every 60 seconds.

PUT https://services.dartmouth.edu/TDWebApi/api/{appId}/assets/contracts/{id} Copy URL

Edits an existing contract. This operation requires the permission add and modify contracts.

Parameters

Returns

The updated contract. (TeamDynamix.Api.Assets.Contract)

Rate/Submission Limitations

Invocations of this method are rate-limited, with a restriction of 60 calls per IP address every 60 seconds.

GET https://services.dartmouth.edu/TDWebApi/api/{appId}/assets/contracts/{id}/associatedassets Copy URL

Gets a list of assets associated to a contract.

Parameters

Returns

The assets associated with this contract. (TeamDynamix.Api.Assets.AssetContract[])

Rate/Submission Limitations

Invocations of this method are rate-limited, with a restriction of 60 calls per IP address every 60 seconds.

DELETE https://services.dartmouth.edu/TDWebApi/api/{appId}/assets/contracts/{id}/associatedassets/{assetId} Copy URL

Removes an asset from a contract. This requires the permission to modify assets.

Parameters

Returns

A response message indicating if the operation was successful or not.

Rate/Submission Limitations

Invocations of this method are rate-limited, with a restriction of 60 calls per IP address every 60 seconds.

POST https://services.dartmouth.edu/TDWebApi/api/{appId}/assets/contracts/{id}/associatedassets/{assetId} Copy URL

Associates an asset to a contract. This requires the permission to modify assets.

Parameters

Returns

A response message indicating if the operation was successful or not.

Rate/Submission Limitations

Invocations of this method are rate-limited, with a restriction of 60 calls per IP address every 60 seconds.

PUT https://services.dartmouth.edu/TDWebApi/api/{appId}/assets/contracts/{id}/associatedassets/{assetId} Copy URL

Edits an asset's contract dates for the specified asset-contract association. This requires the permission to modify assets.

Parameters

Returns

A response message indicating if the operation was successful or not.

Rate/Submission Limitations

Invocations of this method are rate-limited, with a restriction of 60 calls per IP address every 60 seconds.

Remarks

Editing an asset's contract dates is only allowed for contracts with a Sliding date model.

POST https://services.dartmouth.edu/TDWebApi/api/{appId}/assets/contracts/{id}/attachments?showViewLink={showViewLink} Copy URL

Adds an attachment to a contract. This operation requires the permission to add and modify contracts.

Parameters

File Upload

This action accepts an uploaded file as part of the form's submission. For information on how to structure calls with files, see the Submitting Files page.

Returns

The created attachment, if the operation was successful.

Rate/Submission Limitations

Invocations of this method are rate-limited, with a restriction of 60 calls per IP address every 60 seconds.

POST https://services.dartmouth.edu/TDWebApi/api/{appId}/assets/contracts/search Copy URL

Gets a list of contracts. Will not return full contract information.

Parameters

Returns

A list of contracts matching the specified criteria. (TeamDynamix.Api.Assets.Contract[])

Rate/Submission Limitations

Invocations of this method are rate-limited, with a restriction of 60 calls per IP address every 60 seconds.

Remarks

This endpoint will not return all contract information. For example, the following properties will not be included in the results:
  • Attachments
  • Attributes
To retrieve such information, you must load a contract individually.