POST public-api/contracts/delete

This method deletes the listed contracts. The existing contract is retrieved by calling one of the search APIs. Requires Delete Contract permission. Contract numbers are matched case-insensitively against active contracts; a number that matches no active contract is reported as not found in that record's result rather than failing the whole call. Accepts a maximum of 500 contracts at a time.



Request Information

URI Parameters

None.

Body Parameters

Collection of string

Request Formats

application/json

Sample:
[
  "sample string 1",
  "sample string 2"
]



Response Information

Resource Description

WaspResultOfResults
NameDescriptionTypeAdditional information
Data

Results

None.

Messages

Collection of WtResult

None.

BatchNumber

integer

None.

HasError

boolean

None.

HasHttpError

boolean

None.

HasMessage

boolean

None.

HasSuccessWithMoreDataRemaining

boolean

None.

TotalRecordsLongCount

integer

None.

Response Formats

application/json

Sample:
{
  "Data": {
    "ResultList": [
      {
        "ResultCode": 0,
        "Message": "sample string 1",
        "HttpStatusCode": 200,
        "FieldName": "sample string 2"
      },
      {
        "ResultCode": 0,
        "Message": "sample string 1",
        "HttpStatusCode": 200,
        "FieldName": "sample string 2"
      }
    ],
    "SuccessfullResults": 1,
    "TotalResults": 2,
    "ErrorCount": 0
  },
  "Messages": [
    {
      "ResultCode": 0,
      "Message": "sample string 1",
      "HttpStatusCode": 200,
      "FieldName": "sample string 2"
    },
    {
      "ResultCode": 0,
      "Message": "sample string 1",
      "HttpStatusCode": 200,
      "FieldName": "sample string 2"
    }
  ],
  "BatchNumber": 1,
  "HasError": false,
  "HasHttpError": false,
  "HasMessage": true,
  "HasSuccessWithMoreDataRemaining": false,
  "TotalRecordsLongCount": 1
}